You are here

public function AutomatedCropEffect::__construct in Automated Crop 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/AutomatedCropEffect.php, line 50

Class

AutomatedCropEffect
Provide an Automatic crop tools.

Namespace

Drupal\automated_crop\Plugin\ImageEffect

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, AutomatedCropManager $plugin_automated_crop, ImageFactory $image_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $logger);
  $this->automatedCropManager = $plugin_automated_crop;
  $this->imageFactory = $image_factory;
}