abstract class AbstractEntityEvent in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/core_event_dispatcher/src/Event/Entity/AbstractEntityEvent.php \Drupal\core_event_dispatcher\Event\Entity\AbstractEntityEvent
Class AbstractEntityEvent.
Hierarchy
- class \Drupal\core_event_dispatcher\Event\Entity\AbstractEntityEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of AbstractEntityEvent
File
- modules/
core_event_dispatcher/ src/ Event/ Entity/ AbstractEntityEvent.php, line 12
Namespace
Drupal\core_event_dispatcher\Event\EntityView source
abstract class AbstractEntityEvent extends Event implements EventInterface {
/**
* The Entity.
*
* @var \Drupal\Core\Entity\EntityInterface
*/
protected $entity;
/**
* AbstractEntityEvent constructor.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The Entity.
*/
public function __construct(EntityInterface $entity) {
$this->entity = $entity;
}
/**
* Get the Entity.
*
* @return \Drupal\Core\Entity\EntityInterface
* The Entity.
*/
public function getEntity() : EntityInterface {
return $this->entity;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractEntityEvent:: |
protected | property | The Entity. | |
AbstractEntityEvent:: |
public | function | Get the Entity. | |
AbstractEntityEvent:: |
public | function | AbstractEntityEvent constructor. | 4 |
EventInterface:: |
public | function | Get the dispatcher type. | 75 |