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