public function implementedEvents()
    {
        $methodMap = [
            'config/routes' => 'beforeRenderRoutes',
            'Controller/component' => 'beforeRenderComponent',
            'Controller/controller' => 'beforeRenderController',
            'Model/behavior' => 'beforeRenderBehavior',
            'Model/entity' => 'beforeRenderEntity',
            'Model/table' => 'beforeRenderTable',
            'Shell/shell' => 'beforeRenderShell',
            'View/cell' => 'beforeRenderCell',
            'View/helper' => 'beforeRenderHelper',
            'tests/test_case' => 'beforeRenderTestCase',
        ];

        $events = [];
        foreach ($methodMap as $template => $method) {
            if ($this->isType($template) && method_exists($this, $method)) {
                $events[sprintf('Bake.%s', $method)] = $method;
            }
        }

        return $events;
    }
public function implementedEvents()
    {
        $methodMap = [
            'config/routes' => 'beforeRenderRoutes',
            'Controller/component' => 'beforeRenderComponent',
            'Controller/controller' => 'beforeRenderController',
            'Model/behavior' => 'beforeRenderBehavior',
            'Model/entity' => 'beforeRenderEntity',
            'Model/table' => 'beforeRenderTable',
            'Shell/shell' => 'beforeRenderShell',
            'View/cell' => 'beforeRenderCell',
            'View/helper' => 'beforeRenderHelper',
            'tests/test_case' => 'beforeRenderTestCase',
        ];

        $events = [];
        foreach ($methodMap as $template => $method) {
            if ($this->isType($template) && method_exists($this, $method)) {
                $events[sprintf('Bake.%s', $method)] = $method;
            }
        }

        return $events;
    }
public function implementedEvents ( ) { $ methodMap = [ 'config/routes' => 'beforeRenderRoutes' , 'Controller/component' => 'beforeRenderComponent' , 'Controller/controller' => 'beforeRenderController' , 'Model/behavior' => 'beforeRenderBehavior' , 'Model/entity' => 'beforeRenderEntity' , 'Model/table' => 'beforeRenderTable' , 'Shell/shell' => 'beforeRenderShell' , 'View/cell' => 'beforeRenderCell' , 'View/helper' => 'beforeRenderHelper' , 'tests/test_case' => 'beforeRenderTestCase' , ] ; $ events = [ ] ; foreach ( $ methodMap as $ template => $ method ) { if ( $ this -> isType ( $ template ) && method_exists ( $ this , $ method ) ) { $ events [ sprintf ( 'Bake.%s' , $ method ) ] = $ method ; } } return $ events ; }
Get the callbacks this class is interested in.

@return array
Get the callbacks this class is interested in .