function ImageToolkitBase::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php \Drupal\Core\ImageToolkit\ImageToolkitBase::__construct()
  2. 8.9.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php \Drupal\Core\ImageToolkit\ImageToolkitBase::__construct()
  3. 10 core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php \Drupal\Core\ImageToolkit\ImageToolkitBase::__construct()

Constructs an ImageToolkitBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

array $plugin_definition: The plugin implementation definition.

\Drupal\Core\ImageToolkit\ImageToolkitOperationManagerInterface $operation_manager: The toolkit operation manager.

\Psr\Log\LoggerInterface $logger: A logger instance.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

2 calls to ImageToolkitBase::__construct()
GDToolkit::__construct in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Constructs a GDToolkit object.
TestToolkit::__construct in core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
Constructs a TestToolkit object.
2 methods override ImageToolkitBase::__construct()
GDToolkit::__construct in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Constructs a GDToolkit object.
TestToolkit::__construct in core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
Constructs a TestToolkit object.

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php, line 65

Class

ImageToolkitBase
Provides a base class for image toolkit plugins.

Namespace

Drupal\Core\ImageToolkit

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, ImageToolkitOperationManagerInterface $operation_manager, LoggerInterface $logger, ConfigFactoryInterface $config_factory) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->operationManager = $operation_manager;
    $this->logger = $logger;
    $this->configFactory = $config_factory;
}

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