You are here

public function AutomaticCrop::setCrop in Crop API 8.2

Set calculated crop instance.

Parameters

\Drupal\crop\CropInterface $crop: The crop entity instance.

File

src/Events/AutomaticCrop.php, line 63

Class

AutomaticCrop
Represents automatic crop action as event.

Namespace

Drupal\crop\Events

Code

public function setCrop(CropInterface $crop) {
  $this->crop = $crop;
}