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

view() public method

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