public function beforeDelete(Event $event, EntityInterface $entity, ArrayObject $options)
    {
        if (!$this->trash($entity, $options->getArrayCopy())) {
            throw new RuntimeException();
        }

        $event->stopPropagation();

        /** @var \Cake\ORM\Table $table */
        $table = $event->getSubject();
        $table->dispatchEvent('Model.afterDelete', [
            'entity' => $entity,
            'options' => $options,
        ]);

        return true;
    }