src/Action/BaseAction.php
public function publishSuccess(Event $event)
    {
        if (!isset($event->getSubject()->success)) {
            return false;
        }

        $this->_controller()->set('success', $event->getSubject()->success);
    }
public function publishSuccess(Event $event)
    {
        if (!isset($event->getSubject()->success)) {
            return false;
        }

        $this->_controller()->set('success', $event->getSubject()->success);
    }
public function publishSuccess ( Event $ event ) { if ( ! isset ( $ event -> getSubject ( ) -> success ) ) { return false ; } $ this -> _controller ( ) -> set ( 'success' , $ event -> getSubject ( ) -> success ) ; }
Set "success" variable for view.

@param \Cake\Event\Event $event Event
@return bool|null
Set success variable for view .