You are here

public function AbstractAutomatedCrop::initCropBox in Automated Crop 8

Initializes the properties of the plugins according to the configurations.

Return value

self AutomatedCrop plugin initialized.

1 call to AbstractAutomatedCrop::initCropBox()
AbstractAutomatedCrop::__construct in src/AbstractAutomatedCrop.php
Constructs AutomatedCrop plugin.

File

src/AbstractAutomatedCrop.php, line 156

Class

AbstractAutomatedCrop
Provides a base class for each AutomatedCrop provider plugins.

Namespace

Drupal\automated_crop

Code

public function initCropBox() {
  $this
    ->setImage($this->configuration['image']);
  $this
    ->setCropBoxProperties();
  $this
    ->setOriginalSize();
  $this
    ->setAspectRatio();
  $this
    ->setDelta();
  return $this;
}