Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1.008 |
Changes | 0 |
1 | <?php |
||
30 | 3 | public function init() |
|
31 | { |
||
32 | 3 | parent::init(); |
|
33 | |||
34 | // Base template directory |
||
35 | 3 | Event::on( |
|
36 | 3 | View::class, |
|
37 | 3 | View::EVENT_REGISTER_CP_TEMPLATE_ROOTS, |
|
38 | 1 | function (RegisterTemplateRootsEvent $e) { |
|
39 | $e->roots['nested-element-index'] = Craft::$app->getPath()->getVendorPath() . |
||
40 | '/flipboxfactory/craft-elements-nested-index/src/templates'; |
||
41 | 3 | } |
|
42 | ); |
||
43 | 3 | } |
|
44 | |||
58 |