ImageToolkitOperation::$description

The description 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 83 Class ImageToolkitOperation Defines a Plugin annotation object for the image toolkit operation plugin. Namespace Drupal\Core\ImageToolkit\Annotation Code p

ImageToolkitOperation

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 Hierarchy class \Drupal\Component\Annotation\Plugin implements AnnotationInterfaceclass \Drupal\Core\Im

ImageToolkitManager::__construct

public ImageToolkitManager::__construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory) Constructs the ImageToolkitManager object. Parameters \Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations. \Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use. \Dru

ImageToolkitManager::getDefaultToolkitId

public ImageToolkitManager::getDefaultToolkitId() Gets the default image toolkit ID. Return value string|bool ID of the default toolkit, or FALSE on error. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php, line 53 Class ImageToolkitManager Manages image toolkit plugins. Namespace Drupal\Core\ImageToolkit Code public function getDefaultToolkitId() { $toolkit_id = $this->configFactory->get('system.image')->get('toolkit'); $toolkits = $this->getAvailableTool

ImageToolkitManager::getDefaultToolkit

public ImageToolkitManager::getDefaultToolkit() Gets the default image toolkit. Return value \Drupal\Core\ImageToolkit\ImageToolkitInterface Object of the default toolkit, or FALSE on error. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php, line 73 Class ImageToolkitManager Manages image toolkit plugins. Namespace Drupal\Core\ImageToolkit Code public function getDefaultToolkit() { if ($toolkit_id = $this->getDefaultToolkitId()) { return $this->createInstance(

ImageToolkitManager::getAvailableToolkits

public ImageToolkitManager::getAvailableToolkits() Gets a list of available toolkits. Return value array An array with the toolkit names as keys and the descriptions as values. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php, line 86 Class ImageToolkitManager Manages image toolkit plugins. Namespace Drupal\Core\ImageToolkit Code public function getAvailableToolkits() { // Use plugin system to get list of available toolkits. $toolkits = $this->getDefinitions();

ImageToolkitManager::$configFactory

The config factory. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php, line 25 Class ImageToolkitManager Manages image toolkit plugins. Namespace Drupal\Core\ImageToolkit Code protected $configFactory;

ImageToolkitManager

Manages image toolkit plugins. Hierarchy class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTraitclass \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTraitclass \Drupal\Core\ImageToolkit\ImageToolkitManager See also \Drupal\Core\ImageToolkit\Annotation\ImageToolkit \Drupal\Core\ImageToolkit\ImageToolkitInterface \Drupal

ImageToolkitInterface::setSource

public ImageToolkitInterface::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. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 61 Class ImageToolkitInterface Defines an interface for image toolkits.

ImageToolkitInterface::save

public ImageToolkitInterface::save($destination) Writes an image resource to a destination file. Parameters string $destination: A string file URI or path where the image should be saved. Return value bool TRUE on success, FALSE on failure. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 90 Class ImageToolkitInterface Defines an interface for image toolkits. Namespace Drupal\Core\ImageToolkit Code public function save($destination);