Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | class RenderController extends Controller |
||
25 | { |
||
26 | // Protected Properties |
||
27 | // ========================================================================= |
||
28 | |||
29 | protected $allowAnonymous = ['amp-iframe', 'beacon-script']; |
||
30 | |||
31 | // Public Methods |
||
32 | // ========================================================================= |
||
33 | |||
34 | /** |
||
35 | * @return Response The rendered result |
||
36 | */ |
||
37 | public function actionAmpIframe(): Response |
||
38 | { |
||
39 | // Render the template |
||
40 | return $this->asRaw(Webperf::$plugin->beacons->ampHtmlIframe()); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @param string $title |
||
45 | * |
||
46 | * @return Response |
||
47 | */ |
||
48 | public function actionBeaconScript(string $title = ''): Response |
||
51 | } |
||
52 | } |
||
53 |