1 | <?php |
||
21 | class ContentEditableExtension extends \Twig_Extension |
||
22 | { |
||
23 | /** |
||
24 | * @var ContentManagerInterface |
||
25 | */ |
||
26 | private $manager; |
||
27 | |||
28 | /** |
||
29 | * @var AuthorizationCheckerInterface |
||
30 | */ |
||
31 | private $authorizationChecker; |
||
32 | |||
33 | /** |
||
34 | * @var EditorInterface |
||
35 | */ |
||
36 | private $editor; |
||
37 | |||
38 | /** |
||
39 | * @param ContentManagerInterface $manager |
||
40 | * @param AuthorizationCheckerInterface $authorizationChecker |
||
41 | * @param EditorInterface $editor |
||
42 | */ |
||
43 | 2 | public function __construct( |
|
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function getFilters() |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | public function getTokenParsers() |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | 2 | public function render($default, $name = null, array $options = []) |
|
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | public function getName() |
||
103 | } |
||
104 |