| 1 | <?php |
||
| 8 | class BlocksContentControllerExtension extends Extension |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | private static $allowed_actions = [ |
||
| 14 | 'handleBlock', |
||
| 15 | ]; |
||
| 16 | |||
| 17 | public function onAfterInit() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Handles blocks attached to a page |
||
| 28 | * Assumes URLs in the following format: <URLSegment>/block/<block-ID>. |
||
| 29 | * |
||
| 30 | * @return RequestHandler |
||
| 31 | */ |
||
| 32 | public function handleBlock() |
||
| 43 | } |
||
| 44 |