function CropImageEffect::getSummary

Same name in other branches
  1. 9 core/modules/image/src/Plugin/ImageEffect/CropImageEffect.php \Drupal\image\Plugin\ImageEffect\CropImageEffect::getSummary()
  2. 8.9.x core/modules/image/src/Plugin/ImageEffect/CropImageEffect.php \Drupal\image\Plugin\ImageEffect\CropImageEffect::getSummary()
  3. 11.x core/modules/image/src/Plugin/ImageEffect/CropImageEffect.php \Drupal\image\Plugin\ImageEffect\CropImageEffect::getSummary()

Overrides ResizeImageEffect::getSummary

1 call to CropImageEffect::getSummary()
ScaleAndCropImageEffect::getSummary in core/modules/image/src/Plugin/ImageEffect/ScaleAndCropImageEffect.php
Returns a render array summarizing the configuration of the image effect.
1 method overrides CropImageEffect::getSummary()
ScaleAndCropImageEffect::getSummary in core/modules/image/src/Plugin/ImageEffect/ScaleAndCropImageEffect.php
Returns a render array summarizing the configuration of the image effect.

File

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

Class

CropImageEffect
Crops an image resource.

Namespace

Drupal\image\Plugin\ImageEffect

Code

public function getSummary() {
    $summary = [
        '#theme' => 'image_crop_summary',
        '#data' => $this->configuration,
    ];
    $summary += parent::getSummary();
    return $summary;
}

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