| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ApplicationStateHooks extends AbstractHookSet |
||
| 10 | { |
||
| 11 | protected function init() |
||
| 12 | { |
||
| 13 | // ---------------------------------------- |
||
| 14 | // Commented, since `is_admin` is added to |
||
| 15 | // `CacheConfigurationManager.getNamespace()` |
||
| 16 | // ---------------------------------------- |
||
| 17 | // $this->hooksAPI->addFilter( |
||
| 18 | // ModelInstance::HOOK_COMPONENTSFROMVARS_RESULT, |
||
| 19 | // [$this, 'addComponent'] |
||
| 20 | // ); |
||
| 21 | // ---------------------------------------- |
||
| 22 | } |
||
| 23 | /** |
||
| 24 | * Admin and non-admin have different schemas |
||
| 25 | * |
||
| 26 | * @param string[] $components |
||
| 27 | * @return string[] |
||
| 28 | */ |
||
| 29 | public function addComponent(array $components): array |
||
| 33 | } |
||
| 34 | } |
||
| 35 |