ImageToolkitBase::__construct

public ImageToolkitBase::__construct(array $configuration, $plugin_id, array $plugin_definition, ImageToolkitOperationManagerInterface $operation_manager, LoggerInterface $logger, ConfigFactoryInterface $config_factory) Constructs an ImageToolkitBase object. Parameters array $configuration: A configuration array containing information about the plugin instance. string $plugin_id: The plugin_id for the plugin instance. array $plugin_definition: The plugin implementation definition. \Drupal\Core

ImageToolkitBase::validateConfigurationForm

public ImageToolkitBase::validateConfigurationForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm(). \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform(). Overrides PluginFormInterface::validateConfi

ImageToolkitBase::setSource

public ImageToolkitBase::setSource($source) Sets the source path of the image file. Parameters string $source: The source path of the image file. Return value \Drupal\Core\ImageToolkit\ImageToolkitInterface An instance of the current toolkit object. Throws \BadMethodCallException After being set initially, the source image cannot be changed. Overrides ImageToolkitInterface::setSource File core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php, line 81 Class ImageToolkitBase Provides a b

ImageToolkitBase::getToolkitOperation

protected ImageToolkitBase::getToolkitOperation($operation) Gets a toolkit operation plugin instance. Parameters string $operation: The toolkit operation requested. Return value \Drupal\Core\ImageToolkit\ImageToolkitOperationInterface An instance of the requested toolkit operation plugin. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php, line 115 Class ImageToolkitBase Provides a base class for image toolkit plugins. Namespace Drupal\Core\ImageToolkit Code protected functi

ImageToolkitBase::getSource

public ImageToolkitBase::getSource() Gets the source path of the image file. Return value string The source path of the image file, or an empty string if the source is not set. Overrides ImageToolkitInterface::getSource File core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php, line 95 Class ImageToolkitBase Provides a base class for image toolkit plugins. Namespace Drupal\Core\ImageToolkit Code public function getSource() { return $this->source; }

ImageToolkitBase::getRequirements

public ImageToolkitBase::getRequirements() Gets toolkit requirements in a format suitable for hook_requirements(). Return value array An associative requirements array as is returned by hook_requirements(). If the toolkit claims no requirements to the system, returns an empty array. The array can have arbitrary keys and they do not have to be prefixed by e.g. the module name or toolkit ID, as the system will make the keys globally unique. Overrides ImageToolkitInterface::getRequirements See al

ImageToolkitBase::apply

public ImageToolkitBase::apply($operation, array $arguments = array()) Applies a toolkit operation to an image. Parameters string $operation: The toolkit operation to be processed. array $arguments: An associative array of arguments to be passed to the toolkit operation, e.g. array('width' => 50, 'height' => 100, 'upscale' => TRUE). Return value bool TRUE if the operation was performed successfully, FALSE otherwise. Overrides ImageToolkitInterface::apply File core/lib/Drupal/Core/Ima

ImageToolkitBase::$source

Path of the image file. Type: string File core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php, line 33 Class ImageToolkitBase Provides a base class for image toolkit plugins. Namespace Drupal\Core\ImageToolkit Code protected $source = '';

ImageToolkitBase::$operationManager

The image toolkit operation manager. Type: \Drupal\Core\ImageToolkit\ImageToolkitOperationManagerInterface File core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php, line 40 Class ImageToolkitBase Provides a base class for image toolkit plugins. Namespace Drupal\Core\ImageToolkit Code protected $operationManager;

ImageToolkitBase::$logger

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