public function AuditPreEntityDeleteEvent::__construct in Acquia Content Hub 8
AuditPreEntityDeleteEvent constructor.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity that is about to be deleted.
File
- acquia_contenthub_audit/
src/ Event/ AuditPreEntityDeleteEvent.php, line 28
Class
- AuditPreEntityDeleteEvent
- Event fired before deleting an entity.
Namespace
Drupal\acquia_contenthub_audit\EventCode
public function __construct(ContentEntityInterface $entity) {
$this->entity = $entity;
}