ImageToolkit.php 993 Bytes
Newer Older
1 2
<?php

3
namespace Drupal\Core\ImageToolkit\Annotation;
4 5 6 7 8 9

use Drupal\Component\Annotation\Plugin;

/**
 * Defines a Plugin annotation object for the image toolkit plugin.
 *
10 11 12 13 14 15 16
 * 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
17
 *
18
 * @see \Drupal\Core\ImageToolkit\Annotation\ImageToolkitOperation
19
 * @see \Drupal\Core\ImageToolkit\ImageToolkitInterface
20
 * @see \Drupal\Core\ImageToolkit\ImageToolkitBase
21
 * @see \Drupal\Core\ImageToolkit\ImageToolkitManager
22 23 24
 * @see plugin_api
 *
 * @Annotation
25 26 27 28 29 30 31 32 33 34 35 36 37
 */
class ImageToolkit extends Plugin {

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

  /**
   * The title of the image toolkit.
   *
38
   * The string should be wrapped in @Translation().
39 40 41 42 43 44 45 46
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $title;

}