class EntityBaseFieldInfoAlterEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/core_event_dispatcher/src/Event/Entity/EntityBaseFieldInfoAlterEvent.php \Drupal\core_event_dispatcher\Event\Entity\EntityBaseFieldInfoAlterEvent
Class EntityBaseFieldInfoAlterEvent.
Hierarchy
- class \Drupal\core_event_dispatcher\Event\Entity\EntityBaseFieldInfoAlterEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of EntityBaseFieldInfoAlterEvent
2 files declare their use of EntityBaseFieldInfoAlterEvent
- core_event_dispatcher.module in modules/
core_event_dispatcher/ core_event_dispatcher.module - Core event dispatcher submodule.
- EntityBaseFieldInfoAlterEventTest.php in modules/
core_event_dispatcher/ tests/ src/ Unit/ Entity/ EntityBaseFieldInfoAlterEventTest.php
File
- modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityBaseFieldInfoAlterEvent.php, line 13
Namespace
Drupal\core_event_dispatcher\Event\EntityView source
class EntityBaseFieldInfoAlterEvent extends Event implements EventInterface {
/**
* Field info.
*
* @var array
*/
private $fields;
/**
* The entity type.
*
* @var \Drupal\Core\Entity\EntityTypeInterface
*/
private $entityType;
/**
* EntityExtraFieldInfoAlterEvent constructor.
*
* @param array $fields
* Extra field info.
* @param \Drupal\Core\Entity\EntityTypeInterface $entityType
* The entity type.
*/
public function __construct(array &$fields, EntityTypeInterface $entityType) {
$this->entityType = $entityType;
$this->fields =& $fields;
}
/**
* {@inheritdoc}
*/
public function getDispatcherType() : string {
return HookEventDispatcherInterface::ENTITY_BASE_FIELD_INFO_ALTER;
}
/**
* Get the field info.
*
* @return array
* Extra field info.
*/
public function &getFields() : array {
return $this->fields;
}
/**
* Get the entity type.
*
* @return \Drupal\Core\Entity\EntityTypeInterface
* The entity type.
*/
public function getEntityType() : EntityTypeInterface {
return $this->entityType;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityBaseFieldInfoAlterEvent:: |
private | property | The entity type. | |
EntityBaseFieldInfoAlterEvent:: |
private | property | Field info. | |
EntityBaseFieldInfoAlterEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
EntityBaseFieldInfoAlterEvent:: |
public | function | Get the entity type. | |
EntityBaseFieldInfoAlterEvent:: |
public | function | Get the field info. | |
EntityBaseFieldInfoAlterEvent:: |
public | function | EntityExtraFieldInfoAlterEvent constructor. |