You are here

MediaType.php in Media entity 8.2

Same filename and directory in other branches
  1. 8 src/Annotation/MediaType.php

File

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

namespace Drupal\media_entity\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines an media entity type plugin annotation object.
 *
 * @see hook_media_entity_type_info_alter()
 *
 * @Annotation
 */
class MediaType extends Plugin {

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

  /**
   * The human-readable name of the type.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $label;

  /**
   * A brief description of the plugin.
   *
   * This will be shown when adding or configuring this display.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $description = '';

}

Classes

Namesort descending Description
MediaType Defines an media entity type plugin annotation object.