Conditions | 2 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function createTheme(ThemeDescriptorInterface $descriptor): RenderableInterface |
||
25 | { |
||
26 | if (!$descriptor instanceof SubThemeDescriptor) { |
||
27 | throw CannotHandleThemeDescriptorException::cannotHandleDescriptorClass(get_class($descriptor)); |
||
28 | } |
||
29 | return new SubTheme($this->themeFactory->createTheme($descriptor->getThemeDescriptor()), $descriptor->getAdditionalContext()); |
||
30 | } |
||
40 |