Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ImageToolkitOperationBase.php

function ImageToolkitOperationBase::getToolkit

Returns the image toolkit instance for this operation.

Image toolkit implementers should provide a toolkit operation base class that overrides this method to correctly document the return type of this getter. This provides better DX (code checking and code completion) for image toolkit operation developers.

Return value

\Drupal\Core\ImageToolkit\ImageToolkitInterface

2 calls to ImageToolkitOperationBase::getToolkit()
GDImageToolkitOperationBase::getToolkit in core/modules/system/src/Plugin/ImageToolkit/Operation/gd/GDImageToolkitOperationBase.php
The correctly typed image toolkit for GD operations.
GDImageToolkitOperationBase::getToolkit in core/modules/system/src/Plugin/ImageToolkit/Operation/gd/GDImageToolkitOperationBase.php
The correctly typed image toolkit for GD operations.
1 method overrides ImageToolkitOperationBase::getToolkit()
GDImageToolkitOperationBase::getToolkit in core/modules/system/src/Plugin/ImageToolkit/Operation/gd/GDImageToolkitOperationBase.php
The correctly typed image toolkit for GD operations.

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php, line 63

Class

ImageToolkitOperationBase
Provides a base class for image toolkit operation plugins.

Namespace

Drupal\Core\ImageToolkit

Code

protected function getToolkit() {
    return $this->toolkit;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal