public function beforeSave(Event $event, EntityInterface $entity, ArrayObject $options): void
    {
        $entity = $this->encryptEntity($entity);
    }
public function beforeSave(Event $event, EntityInterface $entity, ArrayObject $options): void
    {
        $entity = $this->encryptEntity($entity);
    }
public function beforeSave ( Event $ event , EntityInterface $ entity , ArrayObject $ options ) : void { $ entity = $ this -> encryptEntity ( $ entity ) ; }
`Modele.beforeSave` callback which runs the entity encryption.

@param \Cake\Event\Event $event The beforeDelete event that was fired.
@param \Cake\Datasource\EntityInterface $entity The entity to be deleted.
@param \ArrayObject $options Options.
@return void
Modele . beforeSave callback which runs the entity encryption .