1 | <?php |
||
19 | class CKEditorExtension extends \Twig_Extension implements CKEditorRendererInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var CKEditorRendererInterface |
||
23 | */ |
||
24 | private $renderer; |
||
25 | |||
26 | /** |
||
27 | * @param CKEditorRendererInterface $renderer |
||
28 | */ |
||
29 | 70 | public function __construct(CKEditorRendererInterface $renderer) |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 10 | public function getFunctions() |
|
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | 40 | public function renderBasePath($basePath) |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 40 | public function renderJsPath($jsPath) |
|
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | 50 | public function renderWidget($id, array $config, array $options = []) |
|
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | 50 | public function renderDestroy($id) |
|
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | 10 | public function renderPlugin($name, array $plugin) |
|
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | 10 | public function renderStylesSet($name, array $stylesSet) |
|
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | 10 | public function renderTemplate($name, array $template) |
|
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | 70 | public function getName() |
|
115 | } |
||
116 |