You are here

class EntityPredeleteEvent in Hook Event Dispatcher 8

Class EntityPredeleteEvent.

Hierarchy

Expanded class hierarchy of EntityPredeleteEvent

2 files declare their use of EntityPredeleteEvent
ExampleEntityEventSubscribers.php in src/Example/ExampleEntityEventSubscribers.php
hook_event_dispatcher.module in ./hook_event_dispatcher.module
Hook event dispatcher module.

File

src/Event/Entity/EntityPredeleteEvent.php, line 10

Namespace

Drupal\hook_event_dispatcher\Event\Entity
View source
class EntityPredeleteEvent extends BaseEntityEvent {

  /**
   * {@inheritdoc}
   */
  public function getDispatcherType() {
    return HookEventDispatcherInterface::ENTITY_PRE_DELETE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BaseEntityEvent::$entity protected property The Entity.
BaseEntityEvent::getEntity public function Get the Entity.
BaseEntityEvent::setEntity Deprecated public function Set the Entity.
BaseEntityEvent::__construct public function BaseEntityEvent constructor. 4
EntityPredeleteEvent::getDispatcherType public function Get the dispatcher type. Overrides EventInterface::getDispatcherType