3 namespace Drupal\entity_embed\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines an Entity Embed Display plugin annotation object.
10 * Plugin Namespace: Plugin/entity_embed/EntityEmbedDisplay.
12 * For a working example, see \Drupal\entity_embed\Plugin\entity_embed\EntityEmbedDisplay\FileFieldFormatter
14 * @see \Drupal\entity_embed\EntityEmbedDisplay\EntityEmbedDisplayBase
15 * @see \Drupal\entity_embed\EntityEmbedDisplay\EntityEmbedDisplayInterface
16 * @see \Drupal\entity_embed\EntityEmbedDisplay\EntityEmbedDisplayManager
19 * @ingroup entity_embed_api
23 class EntityEmbedDisplay extends Plugin {
33 * The human-readable name of the Entity Embed Display plugin.
35 * @ingroup plugin_translatable
37 * @var \Drupal\Core\Annotation\Translation
42 * The entity types the Entity Embed Display plugin can apply to.
44 * To make the Entity Embed Display plugin valid for all entity types, set
45 * this value to FALSE.
49 public $entity_types = FALSE;
52 * Shows plugin in the UI if this is FALSE.
56 public $no_ui = FALSE;