| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class PageModifier extends AbstractModifier |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @param Page $page |
||
| 12 | * @param array $context |
||
| 13 | * @return object|void |
||
| 14 | */ |
||
| 15 | public function process($page, array $context = array()) |
||
| 20 | } |
||
| 21 | |||
| 22 | public function supportsData($data): bool |
||
| 23 | { |
||
| 24 | return $data instanceof Page && !$data->getLayout(); |
||
| 25 | } |
||
| 26 | |||
| 27 | public static function getSubscribedServices(): array |
||
| 31 | ]; |
||
| 32 | } |
||
| 34 |