class EntityBundleFieldInfoAlterEvent in Hook Event Dispatcher 8
Class EntityBundleFieldInfoAlterEvent.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\EntityType\EntityBundleFieldInfoAlterEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of EntityBundleFieldInfoAlterEvent
2 files declare their use of EntityBundleFieldInfoAlterEvent
- EntityBundleFieldInfoAlterEventTest.php in tests/src/ Unit/ EntityType/ EntityBundleFieldInfoAlterEventTest.php 
- hook_event_dispatcher.module in ./hook_event_dispatcher.module 
- Hook event dispatcher module.
File
- src/Event/ EntityType/ EntityBundleFieldInfoAlterEvent.php, line 13 
Namespace
Drupal\hook_event_dispatcher\Event\EntityTypeView source
class EntityBundleFieldInfoAlterEvent extends Event implements EventInterface {
  /**
   * Field info.
   *
   * @var array
   */
  private $fields;
  /**
   * The entity type.
   *
   * @var \Drupal\Core\Entity\EntityTypeInterface
   */
  private $entityType;
  /**
   * The bundle name.
   *
   * @var string
   */
  private $bundle;
  /**
   * EntityExtraFieldInfoAlterEvent constructor.
   *
   * @param array $fields
   *   Extra field info.
   * @param \Drupal\Core\Entity\EntityTypeInterface $entityType
   *   The entity type.
   * @param string $bundle
   *   The bundle name.
   */
  public function __construct(array &$fields, EntityTypeInterface $entityType, $bundle) {
    $this->fields =& $fields;
    $this->entityType = $entityType;
    $this->bundle = $bundle;
  }
  /**
   * {@inheritdoc}
   */
  public function getDispatcherType() {
    return HookEventDispatcherInterface::ENTITY_BUNDLE_FIELD_INFO_ALTER;
  }
  /**
   * Get the field info.
   *
   * @return array
   *   Extra field info.
   */
  public function &getFields() {
    return $this->fields;
  }
  /**
   * Get the EntityType.
   *
   * @return \Drupal\Core\Entity\EntityTypeInterface
   *   The EntityType.
   */
  public function getEntityType() {
    return $this->entityType;
  }
  /**
   * Gets the Bundle.
   *
   * @return string
   *   The Bundle.
   */
  public function getBundle() {
    return $this->bundle;
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| EntityBundleFieldInfoAlterEvent:: | private | property | The bundle name. | |
| EntityBundleFieldInfoAlterEvent:: | private | property | The entity type. | |
| EntityBundleFieldInfoAlterEvent:: | private | property | Field info. | |
| EntityBundleFieldInfoAlterEvent:: | public | function | Gets the Bundle. | |
| EntityBundleFieldInfoAlterEvent:: | public | function | Get the dispatcher type. Overrides EventInterface:: | |
| EntityBundleFieldInfoAlterEvent:: | public | function | Get the EntityType. | |
| EntityBundleFieldInfoAlterEvent:: | public | function | Get the field info. | |
| EntityBundleFieldInfoAlterEvent:: | public | function | EntityExtraFieldInfoAlterEvent constructor. | 
