function CropImageEffect::defaultConfiguration

Overrides ResizeImageEffect::defaultConfiguration

File

core/modules/image/src/Plugin/ImageEffect/CropImageEffect.php, line 49

Class

CropImageEffect
Crops an image resource.

Namespace

Drupal\image\Plugin\ImageEffect

Code

public function defaultConfiguration() {
  return parent::defaultConfiguration() + [
    'anchor' => 'center-center',
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.