You are here

interface ImageToolkitOperationManagerInterface in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php \Drupal\Core\ImageToolkit\ImageToolkitOperationManagerInterface
  2. 10 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

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