public function beforeDelete(Event $event, FieldInstance $instance, ArrayObject $options = null)
    {
        $result = $instance->beforeDetach();
        if ($result === false) {
            return false;
        }

        $this->_deleted = $this->get($instance->get('id'), ['contain' => ['EavAttribute']]);

        return true;
    }
public function beforeDelete(Event $event, FieldInstance $instance, ArrayObject $options = null)
    {
        $result = $instance->beforeDetach();
        if ($result === false) {
            return false;
        }

        $this->_deleted = $this->get($instance->get('id'), ['contain' => ['EavAttribute']]);

        return true;
    }
public function beforeDelete ( Event $ event , FieldInstance $ instance , ArrayObject $ options = null ) { $ result = $ instance -> beforeDetach ( ) ; if ( $ result === false ) { return false ; } $ this -> _deleted = $ this -> get ( $ instance -> get ( 'id' ) , [ 'contain' => [ 'EavAttribute' ] ] ) ; return true ; }
Triggers the callback "beforeDetach".

@param \Cake\Event\Event $event The event that was triggered
@param \Field\Model\Entity\FieldInstance $instance The Field Instance that is going to be deleted
@param \ArrayObject $options the options passed to the delete method
@return bool False if delete operation should not continue, true otherwise
Triggers the callback beforeDetach .