original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Triggers the callback beforeDetach .