You are here

public function AbstractAutomatedCrop::hasHardSizes in Automated Crop 8

Evaluate if crop box has Hard sizes defined.

Return value

bool Return if we have width AND height value completed.

1 call to AbstractAutomatedCrop::hasHardSizes()
AutomatedCropDefault::calculateCropBoxSize in src/Plugin/AutomatedCrop/AutomatedCropDefault.php
Calculation of the dimensions of the crop area.

File

src/AbstractAutomatedCrop.php, line 350

Class

AbstractAutomatedCrop
Provides a base class for each AutomatedCrop provider plugins.

Namespace

Drupal\automated_crop

Code

public function hasHardSizes() {
  return !empty($this->cropBox['width']) && !empty($this->cropBox['height']) ? TRUE : FALSE;
}