You are here

public function AutomatedCropInterface::setImage in Automated Crop 8

Set the image resource from plugin configuration to be cropped.

Parameters

mixed $image: The image resource to be cropped. As default this resource will be an, drupal Image object, but in some others usecase we can set another kind, of image resources. You must be sure to give a correct image object.

Return value

self The plugin object with image property defined.

1 method overrides AutomatedCropInterface::setImage()
AbstractAutomatedCrop::setImage in src/AbstractAutomatedCrop.php
Set the image resource from plugin configuration to be cropped.

File

src/AutomatedCropInterface.php, line 128

Class

AutomatedCropInterface
Provides an interface defining the AutomatedCrop plugin objects.

Namespace

Drupal\automated_crop

Code

public function setImage($image);