EntityExtraFieldInfoAlterEvent.php in Hook Event Dispatcher 8
File
src/Event/EntityExtra/EntityExtraFieldInfoAlterEvent.phpView source
<?php
namespace Drupal\hook_event_dispatcher\Event\EntityExtra;
use Drupal\hook_event_dispatcher\Event\EventInterface;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Class EntityExtraFieldInfoAlterEvent.
*/
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;
}
}
Classes
Name | Description |
---|---|
EntityExtraFieldInfoAlterEvent | Class EntityExtraFieldInfoAlterEvent. |