class ImageToolkit in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkit.php \Drupal\Core\ImageToolkit\Annotation\ImageToolkit
- 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
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\Core\ImageToolkit\Annotation\ImageToolkit
Expanded class hierarchy of ImageToolkit
See also
\Drupal\Core\ImageToolkit\Annotation\ImageToolkitOperation
\Drupal\Core\ImageToolkit\ImageToolkitInterface
\Drupal\Core\ImageToolkit\ImageToolkitBase
\Drupal\Core\ImageToolkit\ImageToolkitManager
Related topics
4 classes are annotated with ImageToolkit
- BrokenToolkit in core/
modules/ system/ tests/ modules/ image_test/ src/ Plugin/ ImageToolkit/ BrokenToolkit.php - Defines a Test toolkit for image manipulation within Drupal.
- DerivedToolkit in core/
modules/ system/ tests/ modules/ image_test/ src/ Plugin/ ImageToolkit/ DerivedToolkit.php - Provides a derivative of TestToolkit.
- GDToolkit in core/
modules/ system/ src/ Plugin/ ImageToolkit/ GDToolkit.php - Defines the GD2 toolkit for image manipulation within Drupal.
- TestToolkit in core/
modules/ system/ tests/ modules/ image_test/ src/ Plugin/ ImageToolkit/ TestToolkit.php - Defines a Test toolkit for image manipulation within Drupal.
File
- core/
lib/ Drupal/ Core/ ImageToolkit/ Annotation/ ImageToolkit.php, line 26
Namespace
Drupal\Core\ImageToolkit\AnnotationView 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 | Type | Description | Overrides |
---|---|---|---|---|
ImageToolkit:: |
public | property | The plugin ID. | |
ImageToolkit:: |
public | property | The title of the image toolkit. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
6 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
1 |
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
1 |
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
1 |
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 3 |