| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class AmpPagesControllerExtension extends Extension |
||
| 9 | { |
||
| 10 | |||
| 11 | private static $allowed_actions = ['amp']; |
||
|
|
|||
| 12 | |||
| 13 | public function amp() |
||
| 14 | { |
||
| 15 | Requirements::clear(); |
||
| 16 | $this->addAmpStyles(); |
||
| 17 | $controller = Controller::curr(); |
||
| 18 | $class = $controller->ClassName; |
||
| 19 | return $this->owner->renderWith([$class."_amp", "Amp"]); |
||
| 20 | } |
||
| 21 | |||
| 22 | private function addAmpStyles() |
||
| 34 | } |
||
| 35 | } |
||
| 36 |