You are here

EntityEmbedDisplay.php in Entity Embed 8

File

src/Annotation/EntityEmbedDisplay.php
View source
<?php

namespace Drupal\entity_embed\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines an Entity Embed Display plugin annotation object.
 *
 * Plugin Namespace: Plugin/entity_embed/EntityEmbedDisplay.
 *
 * For a working example, see \Drupal\entity_embed\Plugin\entity_embed\EntityEmbedDisplay\FileFieldFormatter
 *
 * @see \Drupal\entity_embed\EntityEmbedDisplay\EntityEmbedDisplayBase
 * @see \Drupal\entity_embed\EntityEmbedDisplay\EntityEmbedDisplayInterface
 * @see \Drupal\entity_embed\EntityEmbedDisplay\EntityEmbedDisplayManager
 * @see plugin_api
 *
 * @ingroup entity_embed_api
 *
 * @Annotation
 */
class EntityEmbedDisplay extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The human-readable name of the Entity Embed Display plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $label = '';

  /**
   * The entity types the Entity Embed Display plugin can apply to.
   *
   * To make the Entity Embed Display plugin valid for all entity types, set
   * this value to FALSE.
   *
   * @var bool|array
   */
  public $entity_types = FALSE;

  /**
   * Shows plugin in the UI if this is FALSE.
   *
   * @var bool
   */
  public $no_ui = FALSE;

  /**
   * Alt and title access.
   *
   * Whether the plugin supports per-embed alt and title overrides for media
   * entities with an image source.
   *
   * @var bool
   */
  public $supports_image_alt_and_title = FALSE;

}

Classes

Namesort descending Description
EntityEmbedDisplay Defines an Entity Embed Display plugin annotation object.