public function AbstractAutomatedCrop::anchor in Automated Crop 8
Gets crop anchor (top-left corner of crop area).
Return value
array Array with two keys (x, y) and anchor coordinates as values.
Overrides AutomatedCropInterface::anchor
File
- src/
AbstractAutomatedCrop.php, line 263  
Class
- AbstractAutomatedCrop
 - Provides a base class for each AutomatedCrop provider plugins.
 
Namespace
Drupal\automated_cropCode
public function anchor() {
  return [
    'x' => (int) $this->cropBox['x'],
    'y' => (int) $this->cropBox['y'],
  ];
}