Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkit.php \Drupal\Core\ImageToolkit\Annotation\ImageToolkit
  2. 9 core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkit.php \Drupal\Core\ImageToolkit\Annotation\ImageToolkit

Defines a Plugin annotation object for the image toolkit plugin.

An image toolkit provides common image file manipulations like scaling, cropping, and rotating.

Plugin namespace: Plugin\ImageToolkit

For a working example, see \Drupal\system\Plugin\ImageToolkit\GDToolkit

Hierarchy

Expanded class hierarchy of ImageToolkit

See also

\Drupal\Core\ImageToolkit\Annotation\ImageToolkitOperation

\Drupal\Core\ImageToolkit\ImageToolkitInterface

\Drupal\Core\ImageToolkit\ImageToolkitBase

\Drupal\Core\ImageToolkit\ImageToolkitManager

Plugin API

Related topics

File

core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkit.php, line 26

Namespace

Drupal\Core\ImageToolkit\Annotation
View source
class ImageToolkit extends Plugin {

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

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

}

Members

Name Modifiers Typesort descending Description Overrides
Plugin::__construct public function Constructs a Plugin object. 3
Plugin::parse protected function Parses an annotation into its definition.
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 6
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider 1
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass 1
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass 1
ImageToolkit::$id public property The plugin ID.
ImageToolkit::$title public property The title of the image toolkit.
Plugin::$definition protected property The plugin definition read from the class annotation. 1