You are here

interface ImageToolkitOperationManagerInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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
Contains \Drupal\system\Plugin\ImageToolkit\GDToolkit.
TestToolkit.php in core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
Contains \Drupal\image_test\Plugin\ImageToolkit\TestToolkit.

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php, line 13
Contains \Drupal\Core\ImageToolkit\ImageToolkitOperationManagerInterface.

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

Namesort descending Modifiers Type Description Overrides
ImageToolkitOperationManagerInterface::getToolkitOperation public function Returns a toolkit operation plugin instance. 1