class EntityExtraFieldInfoAlterEvent in Hook Event Dispatcher 8
Class EntityExtraFieldInfoAlterEvent.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\EntityExtra\EntityExtraFieldInfoAlterEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of EntityExtraFieldInfoAlterEvent
3 files declare their use of EntityExtraFieldInfoAlterEvent
- EntityExtraEventTest.php in tests/
src/ Unit/ EntityExtra/ EntityExtraEventTest.php - ExampleEntityExtraFieldInfoSubscribers.php in src/
Example/ ExampleEntityExtraFieldInfoSubscribers.php - hook_event_dispatcher.module in ./
hook_event_dispatcher.module - Hook event dispatcher module.
File
- src/
Event/ EntityExtra/ EntityExtraFieldInfoAlterEvent.php, line 12
Namespace
Drupal\hook_event_dispatcher\Event\EntityExtraView source
class EntityExtraFieldInfoAlterEvent extends Event implements EventInterface {
/**
* Field info.
*
* @var array
*/
private $fieldInfo;
/**
* EntityExtraFieldInfoAlterEvent constructor.
*
* @param array $fieldInfo
* Extra field info.
*/
public function __construct(array &$fieldInfo) {
$this->fieldInfo =& $fieldInfo;
}
/**
* Get the dispatcher type.
*
* @return string
* The dispatcher type.
*/
public function getDispatcherType() {
return HookEventDispatcherInterface::ENTITY_EXTRA_FIELD_INFO_ALTER;
}
/**
* Get the field info.
*
* @return array
* Extra field info.
*/
public function &getFieldInfo() {
return $this->fieldInfo;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityExtraFieldInfoAlterEvent:: |
private | property | Field info. | |
EntityExtraFieldInfoAlterEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
EntityExtraFieldInfoAlterEvent:: |
public | function | Get the field info. | |
EntityExtraFieldInfoAlterEvent:: |
public | function | EntityExtraFieldInfoAlterEvent constructor. |