public function AbstractEntityEvent::__construct in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/core_event_dispatcher/src/Event/Entity/AbstractEntityEvent.php \Drupal\core_event_dispatcher\Event\Entity\AbstractEntityEvent::__construct()
AbstractEntityEvent constructor.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The Entity.
4 calls to AbstractEntityEvent::__construct()
- EntityAccessEvent::__construct in modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityAccessEvent.php - EntityAccessEvent constructor.
- EntityBuildDefaultsAlterEvent::__construct in modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityBuildDefaultsAlterEvent.php - EntityBuildDefaultsAlterEvent constructor.
- EntityViewAlterEvent::__construct in modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityViewAlterEvent.php - EntityViewAlterEventEvent constructor.
- EntityViewEvent::__construct in modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityViewEvent.php - EntityViewEvent constructor.
4 methods override AbstractEntityEvent::__construct()
- EntityAccessEvent::__construct in modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityAccessEvent.php - EntityAccessEvent constructor.
- EntityBuildDefaultsAlterEvent::__construct in modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityBuildDefaultsAlterEvent.php - EntityBuildDefaultsAlterEvent constructor.
- EntityViewAlterEvent::__construct in modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityViewAlterEvent.php - EntityViewAlterEventEvent constructor.
- EntityViewEvent::__construct in modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityViewEvent.php - EntityViewEvent constructor.
File
- modules/
core_event_dispatcher/ src/ Event/ Entity/ AbstractEntityEvent.php, line 27
Class
- AbstractEntityEvent
- Class AbstractEntityEvent.
Namespace
Drupal\core_event_dispatcher\Event\EntityCode
public function __construct(EntityInterface $entity) {
$this->entity = $entity;
}