You are here

class FileMetadata in File metadata manager 8

Same name in this branch
  1. 8 src/FileMetadata.php \Drupal\file_mdm\FileMetadata
  2. 8 src/Plugin/Annotation/FileMetadata.php \Drupal\file_mdm\Plugin\Annotation\FileMetadata
Same name and namespace in other branches
  1. 8.2 src/Plugin/Annotation/FileMetadata.php \Drupal\file_mdm\Plugin\Annotation\FileMetadata

Defines a Plugin annotation object for FileMetadata plugins.

Hierarchy

Expanded class hierarchy of FileMetadata

3 classes are annotated with FileMetadata
Exif in file_mdm_exif/src/Plugin/FileMetadata/Exif.php
FileMetadata plugin for EXIF.
Font in file_mdm_font/src/Plugin/FileMetadata/Font.php
FileMetadata plugin for TTF/OTF/WOFF font information.
GetImageSize in src/Plugin/FileMetadata/GetImageSize.php
FileMetadata plugin for getimagesize.

File

src/Plugin/Annotation/FileMetadata.php, line 12

Namespace

Drupal\file_mdm\Plugin\Annotation
View source
class FileMetadata extends Plugin {

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

  /**
   * The title of the plugin.
   *
   * The string should be wrapped in a @Translation().
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $title;

  /**
   * An informative description of the plugin.
   *
   * The string should be wrapped in a @Translation().
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $help;

}

Members

Namesort descending Modifiers Type Description Overrides
FileMetadata::$help public property An informative description of the plugin.
FileMetadata::$id public property The plugin ID.
FileMetadata::$title public property The title of the plugin.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2