You are here

class EntityExtraFieldInfoAlterEvent in Hook Event Dispatcher 8

Class EntityExtraFieldInfoAlterEvent.

Hierarchy

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\EntityExtra
View 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

Namesort descending Modifiers Type Description Overrides
EntityExtraFieldInfoAlterEvent::$fieldInfo private property Field info.
EntityExtraFieldInfoAlterEvent::getDispatcherType public function Get the dispatcher type. Overrides EventInterface::getDispatcherType
EntityExtraFieldInfoAlterEvent::getFieldInfo public function Get the field info.
EntityExtraFieldInfoAlterEvent::__construct public function EntityExtraFieldInfoAlterEvent constructor.