EntityBaseFieldInfoEvent.php in Hook Event Dispatcher 8.2
File
modules/core_event_dispatcher/src/Event/Entity/EntityBaseFieldInfoEvent.php
View source
<?php
namespace Drupal\core_event_dispatcher\Event\Entity;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\hook_event_dispatcher\Event\EventInterface;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
use Symfony\Component\EventDispatcher\Event;
class EntityBaseFieldInfoEvent extends Event implements EventInterface {
private $entityType;
private $fields = [];
public function __construct(EntityTypeInterface $entityType) {
$this->entityType = $entityType;
}
public function getDispatcherType() : string {
return HookEventDispatcherInterface::ENTITY_BASE_FIELD_INFO;
}
public function getEntityType() : EntityTypeInterface {
return $this->entityType;
}
public function getFields() : array {
return $this->fields;
}
public function setFields(array $fields) : void {
$this->fields = $fields;
}
}