src/Controller/Component/CrudComponent.php
public function action($name = null)
    {
        if (empty($name)) {
            $name = $this->_action;
        }

        $name = Inflector::variable($name);

        return $this->_loadAction($name);
    }
public function action($name = null)
    {
        if (empty($name)) {
            $name = $this->_action;
        }

        $name = Inflector::variable($name);

        return $this->_loadAction($name);
    }
public function action ( $ name = null ) { if ( empty ( $ name ) ) { $ name = $ this -> _action ; } $ name = Inflector :: variable ( $ name ) ; return $ this -> _loadAction ( $ name ) ; }
Get a CrudAction object by action name.

@param string|null $name The controller action name.
@return \Crud\Action\BaseAction
@throws \Crud\Error\Exception\ActionNotConfiguredException
@throws \Crud\Error\Exception\MissingActionException
Get a CrudAction object by action name .