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

findMethod() public method

To map multiple findMethods in one go pass an array as first argument and no second argument.
public findMethod ( string | array $action, string | null $method = null ) : void
$action string | array Action or array of actions.
$method string | null Find method name
return void
    public function findMethod($action, $method = null)
    {
        if (is_array($action)) {
            foreach ($action as $realAction => $realMethod) {
                $this->action($realAction)->findMethod($realMethod);
            }
            return;
        }
        $this->action($action)->findMethod($method);
    }