You are here

public function AbstractAutomatedCrop::size in Automated Crop 8

Gets crop box size.

Return value

array Array with two keys (width, height) each side dimensions as values.

Overrides AutomatedCropInterface::size

File

src/AbstractAutomatedCrop.php, line 273

Class

AbstractAutomatedCrop
Provides a base class for each AutomatedCrop provider plugins.

Namespace

Drupal\automated_crop

Code

public function size() {
  return [
    'width' => $this->cropBox['width'],
    'height' => $this->cropBox['height'],
  ];
}