You are here

public function ImageReplaceEffect::__construct in Image Replace 8

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides ImageEffectBase::__construct

File

src/Plugin/ImageEffect/ImageReplaceEffect.php, line 40

Class

ImageReplaceEffect
Rotates an image resource.

Namespace

Drupal\image_replace\Plugin\ImageEffect

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, ImageFactory $image_factory, ImageReplaceStorageInterface $image_replace_storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $logger);
  $this
    ->setConfiguration($configuration);
  $this->imageFactory = $image_factory;
  $this->imageReplaceStorage = $image_replace_storage;
}