ImageToolkitOperationBase::execute

abstract protected ImageToolkitOperationBase::execute(array $arguments) Performs the actual manipulation on the image. Image toolkit operation implementers must implement this method. This method is responsible for actually performing the operation on the image. When this method gets called, the implementer may assume all arguments, also the optional ones, to be available, validated and corrected. Parameters array $arguments: An associative array of arguments to be used by the toolkit operatio

ImageToolkitOperationBase::arguments

abstract protected ImageToolkitOperationBase::arguments() Returns the definition of the operation arguments. Image toolkit operation implementers must implement this method to "document" their operation, thus also if no arguments are expected. Return value array An array whose keys are the names of the arguments (e.g. "width", "degrees") and each value is an associative array having the following keys: description: A string with the argument description. This is used only internally for docum

ImageToolkitOperationBase::apply

public final ImageToolkitOperationBase::apply(array $arguments) Applies a toolkit specific operation to an image. Parameters array $arguments: An associative array of data to be used by the toolkit operation. Return value bool TRUE if the operation was performed successfully, FALSE otherwise. Throws \InvalidArgumentException If one or more of the arguments are not valid. Overrides ImageToolkitOperationInterface::apply File core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php, line

ImageToolkitOperationBase::$toolkit

The image toolkit. Type: \Drupal\Core\ImageToolkit\ImageToolkitInterface File core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php, line 24 Class ImageToolkitOperationBase Provides a base class for image toolkit operation plugins. Namespace Drupal\Core\ImageToolkit Code protected $toolkit;

ImageToolkitOperationBase::$logger

A logger instance. Type: \Psr\Log\LoggerInterface File core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php, line 31 Class ImageToolkitOperationBase Provides a base class for image toolkit operation plugins. Namespace Drupal\Core\ImageToolkit Code protected $logger;

ImageToolkitOperationBase

Provides a base class for image toolkit operation plugins. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\ImageToolkit\ImageToolkitOperationBase implements ImageToolkitOperationInterface See also \Drupal\Core\ImageToolkit\Annotation\ImageToolkitOperation \Drupal\Core\ImageToolkit\ImageToolkitOperationInterf

ImageToolkitOperation::$toolkit

The id of the image toolkit plugin for which the operation is implemented. Type: string File core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkitOperation.php, line 54 Class ImageToolkitOperation Defines a Plugin annotation object for the image toolkit operation plugin. Namespace Drupal\Core\ImageToolkit\Annotation Code public $toolkit;

ImageToolkitOperation::$operation

The machine name of the image toolkit operation implemented (e.g. "crop"). Type: string File core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkitOperation.php, line 61 Class ImageToolkitOperation Defines a Plugin annotation object for the image toolkit operation plugin. Namespace Drupal\Core\ImageToolkit\Annotation Code public $operation;

ImageToolkitOperation::$label

The human-readable name of the image toolkit operation. The string should be wrapped in a @Translation(). Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkitOperation.php, line 72 Class ImageToolkitOperation Defines a Plugin annotation object for the image toolkit operation plugin. Namespace Drupal\Core\ImageToolkit\Annotation

ImageToolkitOperation::$id

The plugin ID. There are no strict requirements as to the string to be used to identify the plugin, since discovery of the appropriate operation plugin to be used to apply an operation is based on the values of the 'toolkit' and the 'operation' annotation values. However, it is recommended that the following patterns be used: '{toolkit}_{operation}' for the first implementation of an operation by a toolkit. '{module}_{toolkit}_{operation}' for overrides of existing implementations supplied by a