Crud\Controller\Component\CrudComponent::isActionMapped PHP Method

isActionMapped() public method

Check if a CRUD action has been mapped (whether it will be handled by CRUD component)
public isActionMapped ( string | null $action = null ) : boolean
$action string | null If null, use the current action.
return boolean
    public function isActionMapped($action = null)
    {
        if (empty($action)) {
            $action = $this->_action;
        }
        $action = Inflector::variable($action);
        $test = $this->config('actions.' . $action);
        if (empty($test)) {
            return false;
        }
        return $this->action($action)->config('enabled');
    }