class FieldFormatterInfoAlterEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/field_event_dispatcher/src/Event/Field/FieldFormatterInfoAlterEvent.php \Drupal\field_event_dispatcher\Event\Field\FieldFormatterInfoAlterEvent
Class FieldFormatterInfoAlterEvent.
Hierarchy
- class \Drupal\field_event_dispatcher\Event\Field\FieldFormatterInfoAlterEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of FieldFormatterInfoAlterEvent
2 files declare their use of FieldFormatterInfoAlterEvent
- FieldFormatterInfoAlterEventTest.php in modules/
field_event_dispatcher/ tests/ src/ Unit/ Field/ FieldFormatterInfoAlterEventTest.php - field_event_dispatcher.module in modules/
field_event_dispatcher/ field_event_dispatcher.module - Field event dispatcher submodule.
File
- modules/
field_event_dispatcher/ src/ Event/ Field/ FieldFormatterInfoAlterEvent.php, line 12
Namespace
Drupal\field_event_dispatcher\Event\FieldView source
class FieldFormatterInfoAlterEvent extends Event implements EventInterface {
/**
* An array of information on existing field formatter types.
*
* @var array
*/
private $info;
/**
* FieldFormatterInfoAlterEvent constructor.
*
* @param array &$info
* An array of information on existing field formatter types.
*/
public function __construct(array &$info) {
$this->info =& $info;
}
/**
* Get the existing field formatter type definitions.
*
* @return array
* An array of information on existing field formatter types.
*/
public function &getInfo() : array {
return $this->info;
}
/**
* {@inheritdoc}
*/
public function getDispatcherType() : string {
return HookEventDispatcherInterface::FIELD_FORMATTER_INFO_ALTER;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FieldFormatterInfoAlterEvent:: |
private | property | An array of information on existing field formatter types. | |
FieldFormatterInfoAlterEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
FieldFormatterInfoAlterEvent:: |
public | function | Get the existing field formatter type definitions. | |
FieldFormatterInfoAlterEvent:: |
public | function | FieldFormatterInfoAlterEvent constructor. |