1 | <?php |
||
10 | class TwigExtension extends \Twig_Extension { |
||
11 | |||
12 | /** |
||
13 | * @var EntityWrapper |
||
14 | */ |
||
15 | private $entityWrapper; |
||
16 | |||
17 | public function __construct(EntityWrapper $entityWrapper) { |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | public function getFunctions() { |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | * |
||
33 | * @deprecated |
||
34 | */ |
||
35 | public function getName() { |
||
38 | |||
39 | /** |
||
40 | * Wraps an entity object in a "easy" wrapper. |
||
41 | * |
||
42 | * @param EntityInterface $entity |
||
43 | * @return EasyEntityAdapter |
||
44 | */ |
||
45 | public function easyEntity(EntityInterface $entity) { |
||
48 | } |
||
49 |