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