You are here

public function AbstractAutomatedCrop::setAnchor in Automated Crop 8

Set crop anchor (top-left corner of crop area).

Parameters

array $coordinates: An array with (x,y) positions of top left corner of crop box.

Return value

self The plugin object with given (x, y) coordinates properties set.

Overrides AutomatedCropInterface::setAnchor

File

src/AbstractAutomatedCrop.php, line 254

Class

AbstractAutomatedCrop
Provides a base class for each AutomatedCrop provider plugins.

Namespace

Drupal\automated_crop

Code

public function setAnchor(array $coordinates = []) {
  array_merge($coordinates, $this->cropBox);
  return $this;
}