ImageToolkitOperationManagerInterface.php

Same filename in other branches
  1. 8.9.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php
  2. 10 core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php
  3. 11.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php

Namespace

Drupal\Core\ImageToolkit

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php

View source
<?php

namespace Drupal\Core\ImageToolkit;


/**
 * Defines an interface for image toolkit operation managers.
 */
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);

}

Interfaces

Title Deprecated Summary
ImageToolkitOperationManagerInterface Defines an interface for image toolkit operation managers.

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