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