Interim commit.
[yaffs-website] / web / modules / contrib / entity_browser / src / Events / Events.php
1 <?php
2
3 namespace Drupal\entity_browser\Events;
4
5 /**
6  * Contains all events thrown by entity browser.
7  */
8 final class Events {
9
10   /**
11    * The SELECED event occurs when enities are selected in currently active
12    * widget.
13    *
14    * @var string
15    */
16   const SELECTED = 'entity_browser.selected';
17
18   /**
19    * The DONE event occurs when selection process is done. While it can be emitted
20    * by any part of the system that will usually be done by selection display plugin.
21    *
22    * @var string
23    */
24   const DONE = 'entity_browser.done';
25
26   /**
27    * The REGISTER_JS_CALLBACKS collects JS callbacks that need to be notified when
28    * we bring selected entities back to the form. Callbacks are responsible to
29    * propagate selection further to entitiy fields, etc.
30    *
31    * @var string
32    */
33   const REGISTER_JS_CALLBACKS = 'entity_browser.register_js_callbacks';
34
35   /**
36    * The ALTER_BROWSER_DISPLAY_DATA allows for entity browser display plugin data
37    * to be tweaked.
38    *
39    * @var string
40    */
41   const ALTER_BROWSER_DISPLAY_DATA = 'entity_browser.alter_browser_display_data';
42
43 }