abstract public function AbstractAutomatedCrop::calculateCropBoxCoordinates in Automated Crop 8
Calculation of the coordinates of the crop area.
This method allow you to define a specific logic to calculate, the position of the top left corner of crop area.
Return value
self AutomatedCrop plugin with the coordinates set.
See also
\Drupal\automated_crop\Plugin\AutomatedCrop\AutomatedCropDefault
1 call to AbstractAutomatedCrop::calculateCropBoxCoordinates()
- AbstractAutomatedCrop::__construct in src/
AbstractAutomatedCrop.php - Constructs AutomatedCrop plugin.
1 method overrides AbstractAutomatedCrop::calculateCropBoxCoordinates()
- AutomatedCropDefault::calculateCropBoxCoordinates in src/
Plugin/ AutomatedCrop/ AutomatedCropDefault.php - Calculation of the coordinates of the crop area.
File
- src/
AbstractAutomatedCrop.php, line 148
Class
- AbstractAutomatedCrop
- Provides a base class for each AutomatedCrop provider plugins.
Namespace
Drupal\automated_cropCode
public abstract function calculateCropBoxCoordinates();