public function beforeDelete()
    {
        $handler = $this->get('metadata')->get('handler');
        if (class_exists($handler)) {
            $handler = new $handler();

            return $handler->beforeDelete($this);
        }

        return true;
    }
public function beforeDelete()
    {
        $handler = $this->get('metadata')->get('handler');
        if (class_exists($handler)) {
            $handler = new $handler();

            return $handler->beforeDelete($this);
        }

        return true;
    }
public function beforeDelete ( ) { $ handler = $ this -> get ( 'metadata' ) -> get ( 'handler' ) ; if ( class_exists ( $ handler ) ) { $ handler = new $ handler ( ) ; return $ handler -> beforeDelete ( $ this ) ; } return true ; }
Triggers entity's beforeDelete callback. Returning FALSE will halt the delete
operation.

@return bool
Triggers entity s beforeDelete callback . Returning FALSE will halt the delete operation .