3 namespace Drupal\entity_browser\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines an entity browser selection display annotation object.
10 * @see hook_entity_browser_selection_display_info_alter()
14 class EntityBrowserSelectionDisplay extends Plugin {
24 * The human-readable name of the selection display.
26 * @ingroup plugin_translatable
28 * @var \Drupal\Core\Annotation\Translation
33 * A brief description of the selection display.
35 * This will be shown when adding or configuring this selection display.
37 * @ingroup plugin_translatable
39 * @var \Drupal\Core\Annotation\Translation (optional)
41 public $description = '';
44 * Preselection support.
46 * This will be used by entity browser form element to check, if selection
47 * display accepts preselection of entities.
51 public $acceptPreselection = FALSE;
54 * Indicates that javascript commands can be executed for Selection display.
56 * Currently supported javascript commands are adding and removing selection
57 * from selection display. Javascript commands use Ajax requests to load
58 * relevant changes and makes user experience way better, becase form is not
63 public $js_commands = FALSE;