You are here

public function FocalPointEffectBase::__construct in Focal Point 8

Constructs a \Drupal\focal_point\FocalPointEffectBase 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.

\Psr\Log\LoggerInterface $logger: Image logger.

\Drupal\focal_point\FocalPointManager $focal_point_manager: Focal point manager.

\Drupal\crop\CropStorageInterface $crop_storage: Crop storage.

\Drupal\Core\Config\ImmutableConfig $focal_point_config: Focal point configuration object.

\Symfony\Component\HttpFoundation\Request $request: Current request object.

Overrides ImageEffectBase::__construct

File

src/FocalPointEffectBase.php, line 76

Class

FocalPointEffectBase
Provides a base class for image effects.

Namespace

Drupal\focal_point

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, FocalPointManager $focal_point_manager, CropStorageInterface $crop_storage, ImmutableConfig $focal_point_config, Request $request) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $logger);
  $this->focalPointManager = $focal_point_manager;
  $this->cropStorage = $crop_storage;
  $this->focalPointConfig = $focal_point_config;
  $this->request = $request;
}