ImageToolkitOperation
class ImageToolkitOperation extends Plugin (View source)
Defines a Plugin annotation object for the image toolkit operation plugin.
An image toolkit operation plugin provides a self-contained image manipulation routine, for a specific image toolkit. Examples of image toolkit operations are scaling, cropping, rotating, etc.
Plugin namespace: Plugin\ImageToolkit\Operation
For a working example, see \Drupal\system\Plugin\ImageToolkit\Operation\gd\Crop
Properties
| protected array | $definition | The plugin definition read from the class annotation. |
from Plugin |
| string | $id | The plugin ID. |
|
| string | $toolkit | The id of the image toolkit plugin for which the operation is implemented. |
|
| string | $operation | The machine name of the image toolkit operation implemented (e.g. "crop"). |
|
| Translation | $label | The human-readable name of the image toolkit operation. |
|
| Translation | $description | The description of the image toolkit operation. |
Methods
Details
in
Plugin at line 35
__construct($values)
Constructs a Plugin object.
Builds up the plugin definition and invokes the get() method for any classed annotations that were used.
in
Plugin at line 54
protected array
parse(array $values)
Parses an annotation into its definition.
in
Plugin at line 73
get()
Gets the value of an annotation.
in
Plugin at line 80
string
getProvider()
Gets the name of the provider of the annotated class.
in
Plugin at line 87
setProvider(string $provider)
Sets the name of the provider of the annotated class.
in
Plugin at line 94
string
getId()
Gets the unique ID for this annotated class.
string
getClass()
Gets the class of the annotated class.
setClass(string $class)
Sets the class of the annotated class.