Conditions | 2 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function createTheme(ThemeDescriptorInterface $descriptor): RenderableInterface |
||
33 | { |
||
34 | if (!$descriptor instanceof TwigThemeDescriptor) { |
||
35 | throw CannotHandleThemeDescriptorException::cannotHandleDescriptorClass(get_class($descriptor)); |
||
36 | } |
||
37 | return new TwigTheme($this->twig, $descriptor->getTemplate(), $this->blockRenderer); |
||
38 | } |
||
48 |