interface ImageToolkitOperationManagerInterface

Same name in other branches
  1. 9 core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php \Drupal\Core\ImageToolkit\ImageToolkitOperationManagerInterface
  2. 8.9.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php \Drupal\Core\ImageToolkit\ImageToolkitOperationManagerInterface
  3. 11.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php \Drupal\Core\ImageToolkit\ImageToolkitOperationManagerInterface

Defines an interface for image toolkit operation managers.

Hierarchy

Expanded class hierarchy of ImageToolkitOperationManagerInterface

All classes that implement ImageToolkitOperationManagerInterface

2 files declare their use of ImageToolkitOperationManagerInterface
GDToolkit.php in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
TestToolkit.php in core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php, line 8

Namespace

Drupal\Core\ImageToolkit
View source
interface ImageToolkitOperationManagerInterface {
    
    /**
     * Returns a toolkit operation plugin instance.
     *
     * @param \Drupal\Core\ImageToolkit\ImageToolkitInterface $toolkit
     *   The toolkit instance.
     * @param string $operation
     *   The operation (e.g. "crop").
     *
     * @return \Drupal\Core\ImageToolkit\ImageToolkitOperationInterface
     *   An instance of the requested toolkit operation plugin.
     *
     * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
     *   When no plugin is available.
     */
    public function getToolkitOperation(ImageToolkitInterface $toolkit, $operation);

}

Members

Title Sort descending Modifiers Object type Summary
ImageToolkitOperationManagerInterface::getToolkitOperation public function Returns a toolkit operation plugin instance.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.