class EntityTypeBuildEvent in Hook Event Dispatcher 8
Class EntityTypeBuildEvent.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\EntityType\EntityTypeBuildEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of EntityTypeBuildEvent
2 files declare their use of EntityTypeBuildEvent
- EntityTypeBuildEventTest.php in tests/
src/ Unit/ EntityType/ EntityTypeBuildEventTest.php - hook_event_dispatcher.module in ./
hook_event_dispatcher.module - Hook event dispatcher module.
File
- src/
Event/ EntityType/ EntityTypeBuildEvent.php, line 12
Namespace
Drupal\hook_event_dispatcher\Event\EntityTypeView source
class EntityTypeBuildEvent extends Event implements EventInterface {
/**
* Field info.
*
* @var array
*/
private $entityTypes;
/**
* EntityTypeBuildEvent constructor.
*
* @param array $entityTypes
* Extra field info.
*/
public function __construct(array &$entityTypes) {
$this->entityTypes =& $entityTypes;
}
/**
* {@inheritdoc}
*/
public function getDispatcherType() {
return HookEventDispatcherInterface::ENTITY_TYPE_BUILD;
}
/**
* Get the entity types.
*
* @return \Drupal\Core\Entity\EntityTypeInterface[]
* Entity types info.
*/
public function &getEntityTypes() {
return $this->entityTypes;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityTypeBuildEvent:: |
private | property | Field info. | |
EntityTypeBuildEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
EntityTypeBuildEvent:: |
public | function | Get the entity types. | |
EntityTypeBuildEvent:: |
public | function | EntityTypeBuildEvent constructor. |