You are here

function core_event_dispatcher_entity_extra_field_info in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/core_event_dispatcher/core_event_dispatcher.module \core_event_dispatcher_entity_extra_field_info()

Implements hook_entity_extra_field_info().

2 calls to core_event_dispatcher_entity_extra_field_info()
EntityExtraEventTest::testEntityExtraFieldInfoEventWithHelperFunctions in modules/core_event_dispatcher/tests/src/Unit/Entity/EntityExtraEventTest.php
Test EntityExtraFieldInfoEvent with helper functions.
EntityExtraEventTest::testEntityExtraFieldInfoEventWithSetFunction in modules/core_event_dispatcher/tests/src/Unit/Entity/EntityExtraEventTest.php
Test EntityExtraFieldInfoEvent with set function.

File

modules/core_event_dispatcher/core_event_dispatcher.module, line 417
Core event dispatcher submodule.

Code

function core_event_dispatcher_entity_extra_field_info() {

  /** @var \Drupal\hook_event_dispatcher\Manager\HookEventDispatcherManagerInterface $manager */
  $manager = Drupal::service('hook_event_dispatcher.manager');
  $event = new EntityExtraFieldInfoEvent();
  $manager
    ->register($event);
  return $event
    ->getFieldInfo();
}