src/Event/FootprintListener.php
public function handleEvent(Event $event, $ormObject, $options)
    {
        $key = $this->getConfig('optionKey');
        if (empty($options[$key]) && !empty($this->_currentUser)) {
            $options[$key] = $this->_currentUser;
        }
    }
public function handleEvent(Event $event, $ormObject, $options)
    {
        $key = $this->getConfig('optionKey');
        if (empty($options[$key]) && !empty($this->_currentUser)) {
            $options[$key] = $this->_currentUser;
        }
    }
public function handleEvent ( Event $ event , $ ormObject , $ options ) { $ key = $ this -> getConfig ( 'optionKey' ) ; if ( empty ( $ options [ $ key ] ) && ! empty ( $ this -> _currentUser ) ) { $ options [ $ key ] = $ this -> _currentUser ; } }
Universal callback.

@param \Cake\Event\Event $event Event.
@param mixed $ormObject Query or Entity.
@param \ArrayObject $options Options.
@return void
Universal callback .