Version 1
[yaffs-website] / web / modules / contrib / entity_browser / src / Annotation / EntityBrowserDisplay.php
diff --git a/web/modules/contrib/entity_browser/src/Annotation/EntityBrowserDisplay.php b/web/modules/contrib/entity_browser/src/Annotation/EntityBrowserDisplay.php
new file mode 100644 (file)
index 0000000..f7c853c
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+
+namespace Drupal\entity_browser\Annotation;
+
+use Drupal\Component\Annotation\Plugin;
+
+/**
+ * Defines an entity browser display annotation object.
+ *
+ * @see hook_entity_browser_display_info_alter()
+ *
+ * @Annotation
+ */
+class EntityBrowserDisplay extends Plugin {
+
+  /**
+   * The plugin ID.
+   *
+   * @var string
+   */
+  public $id;
+
+  /**
+   * The human-readable name of the display.
+   *
+   * @ingroup plugin_translatable
+   *
+   * @var \Drupal\Core\Annotation\Translation
+   */
+  public $label;
+
+  /**
+   * A brief description of the display.
+   *
+   * This will be shown when adding or configuring this display.
+   *
+   * @ingroup plugin_translatable
+   *
+   * @var \Drupal\Core\Annotation\Translation (optional)
+   */
+  public $description = '';
+
+  /**
+   * Indicates that display uses route.
+   *
+   * @var string
+   */
+  public $uses_route = FALSE;
+
+}