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

Breadcrumb

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

class ImageToolkit

Same name in this branch
  1. 11.1.x core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkit.php \Drupal\Core\ImageToolkit\Annotation\ImageToolkit

Defines a Plugin attribute for the image toolkit plugin.

An image toolkit provides common image file manipulations like scaling, cropping, and rotating.

Plugin namespace: Plugin\ImageToolkit

For a working example, see \Drupal\system\Plugin\ImageToolkit\GDToolkit

Hierarchy

  • class \Drupal\Component\Plugin\Attribute\AttributeBase implements \Drupal\Component\Plugin\Attribute\AttributeInterface
    • class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
      • class \Drupal\Core\ImageToolkit\Attribute\ImageToolkit extends \Drupal\Component\Plugin\Attribute\Plugin

Expanded class hierarchy of ImageToolkit

See also

\Drupal\Core\ImageToolkit\Attribute\ImageToolkitOperation

\Drupal\Core\ImageToolkit\ImageToolkitInterface

\Drupal\Core\ImageToolkit\ImageToolkitBase

\Drupal\Core\ImageToolkit\ImageToolkitManager

Plugin API

2 files declare their use of ImageToolkit
GDToolkit.php in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
ImageToolkitManager.php in core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php

File

core/lib/Drupal/Core/ImageToolkit/Attribute/ImageToolkit.php, line 27

Namespace

Drupal\Core\ImageToolkit\Attribute
View source
class ImageToolkit extends Plugin {
    public function __construct(string $id, TranslatableMarkup $title, ?string $deriver = NULL) {
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
AttributeBase::$class protected property The class used for this attribute class.
AttributeBase::$provider protected property The provider of the attribute class.
AttributeBase::get public function Gets the value of an attribute. Overrides AttributeInterface::get 6
AttributeBase::getClass public function Gets the class of the attribute class. Overrides AttributeInterface::getClass 1
AttributeBase::getId public function Gets the unique ID for this attribute class. Overrides AttributeInterface::getId
AttributeBase::getProvider public function Gets the name of the provider of the attribute class. Overrides AttributeInterface::getProvider
AttributeBase::setClass public function Sets the class of the attributed class. Overrides AttributeInterface::setClass 1
AttributeBase::setProvider public function Sets the name of the provider of the attribute class. Overrides AttributeInterface::setProvider
ImageToolkit::__construct public function Constructs a plugin attribute object. Overrides Plugin::__construct

API Navigation

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