src/Listener/ApiListener.php
public function render(Subject $subject)
    {
        $this->injectViewClasses();
        $this->_ensureSuccess($subject);
        $this->_ensureData($subject);
        $this->_ensureSerialize();

        return $this->_controller()->render();
    }
public function render(Subject $subject)
    {
        $this->injectViewClasses();
        $this->_ensureSuccess($subject);
        $this->_ensureData($subject);
        $this->_ensureSerialize();

        return $this->_controller()->render();
    }
public function render ( Subject $ subject ) { $ this -> injectViewClasses ( ) ; $ this -> _ensureSuccess ( $ subject ) ; $ this -> _ensureData ( $ subject ) ; $ this -> _ensureSerialize ( ) ; return $ this -> _controller ( ) -> render ( ) ; }
Selects an specific Crud view class to render the output

@param \Crud\Event\Subject $subject Subject
@return \Cake\Http\Response
Selects an specific Crud view class to render the output