| 1 | <?php |
||
| 22 | class TwigFieldType implements FieldTypeInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var DataExtractorInterface |
||
| 26 | */ |
||
| 27 | private $dataExtractor; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var \Twig_Environment |
||
| 31 | */ |
||
| 32 | private $twig; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param DataExtractorInterface $dataExtractor |
||
| 36 | * @param \Twig_Environment $twig |
||
| 37 | */ |
||
| 38 | public function __construct(DataExtractorInterface $dataExtractor, \Twig_Environment $twig) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | public function render(Field $field, $data, array $options) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | */ |
||
| 59 | public function configureOptions(OptionsResolver $resolver) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * {@inheritdoc} |
||
| 71 | */ |
||
| 72 | public function getName() |
||
| 76 | } |
||
| 77 |