src/Controller/Component/CrudComponent.php
public function removeListener($name)
    {
        $listeners = $this->getConfig('listeners');
        if (!array_key_exists($name, $listeners)) {
            return false;
        }

        if (isset($this->_listenerInstances[$name])) {
            $this->_eventManager->off($this->_listenerInstances[$name]);
            unset($this->_listenerInstances[$name]);
        }

        unset($listeners[$name]);
        $this->_config['listeners'] = $listeners;
    }
public function removeListener($name)
    {
        $listeners = $this->getConfig('listeners');
        if (!array_key_exists($name, $listeners)) {
            return false;
        }

        if (isset($this->_listenerInstances[$name])) {
            $this->_eventManager->off($this->_listenerInstances[$name]);
            unset($this->_listenerInstances[$name]);
        }

        unset($listeners[$name]);
        $this->_config['listeners'] = $listeners;
    }
public function removeListener ( $ name ) { $ listeners = $ this -> getConfig ( 'listeners' ) ; if ( ! array_key_exists ( $ name , $ listeners ) ) { return false ; } if ( isset ( $ this -> _listenerInstances [ $ name ] ) ) { $ this -> _eventManager -> off ( $ this -> _listenerInstances [ $ name ] ) ; unset ( $ this -> _listenerInstances [ $ name ] ) ; } unset ( $ listeners [ $ name ] ) ; $ this -> _config [ 'listeners' ] = $ listeners ; }
Remove a listener from Crud.

This will also detach it from the EventManager if it's attached.

@param string $name Name
@return bool|null
Remove a listener from Crud .