You are here

public function AutomaticCrop::__construct in Crop API 8.2

Constructs a EntitySelectionEvent object.

Parameters

\Drupal\Core\Image\ImageInterface $image:

\Drupal\crop\Entity\CropType $cropType:

$configuration:

File

src/Events/AutomaticCrop.php, line 51

Class

AutomaticCrop
Represents automatic crop action as event.

Namespace

Drupal\crop\Events

Code

public function __construct(ImageInterface $image, CropType $cropType, array $configuration) {
  $this->image = $image;
  $this->cropType = $cropType;
  $this->configuration = $configuration;
}