You are here

final class Events in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/Events/Events.php \Drupal\entity_browser\Events\Events

Contains all events thrown by entity browser.

Hierarchy

  • class \Drupal\entity_browser\Events\Events

Expanded class hierarchy of Events

4 files declare their use of Events
IFrame.php in src/Plugin/EntityBrowser/Display/IFrame.php
Modal.php in src/Plugin/EntityBrowser/Display/Modal.php
SelectionDisplayBase.php in src/SelectionDisplayBase.php
WidgetBase.php in src/WidgetBase.php

File

src/Events/Events.php, line 8

Namespace

Drupal\entity_browser\Events
View source
final class Events {

  /**
   * The SELECED event occurs when enities are selected in currently active
   * widget.
   *
   * @var string
   */
  const SELECTED = 'entity_browser.selected';

  /**
   * The DONE event occurs when selection process is done. While it can be emitted
   * by any part of the system that will usually be done by selection display plugin.
   *
   * @var string
   */
  const DONE = 'entity_browser.done';

  /**
   * The REGISTER_JS_CALLBACKS collects JS callbacks that need to be notified when
   * we bring selected entities back to the form. Callbacks are responsible to
   * propagate selection further to entitiy fields, etc.
   *
   * @var string
   */
  const REGISTER_JS_CALLBACKS = 'entity_browser.register_js_callbacks';

  /**
   * The ALTER_BROWSER_DISPLAY_DATA allows for entity browser display plugin data
   * to be tweaked.
   *
   * @var string
   */
  const ALTER_BROWSER_DISPLAY_DATA = 'entity_browser.alter_browser_display_data';

}

Members

Namesort descending Modifiers Type Description Overrides
Events::ALTER_BROWSER_DISPLAY_DATA constant The ALTER_BROWSER_DISPLAY_DATA allows for entity browser display plugin data to be tweaked.
Events::DONE constant The DONE event occurs when selection process is done. While it can be emitted by any part of the system that will usually be done by selection display plugin.
Events::REGISTER_JS_CALLBACKS constant The REGISTER_JS_CALLBACKS collects JS callbacks that need to be notified when we bring selected entities back to the form. Callbacks are responsible to propagate selection further to entitiy fields, etc.
Events::SELECTED constant The SELECED event occurs when enities are selected in currently active widget.