You are here

public function CropEffect::getSummary in Crop API 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/ImageEffect/CropEffect.php \Drupal\crop\Plugin\ImageEffect\CropEffect::getSummary()

Returns a render array summarizing the configuration of the image effect.

Return value

array A render array.

Overrides ImageEffectBase::getSummary

File

src/Plugin/ImageEffect/CropEffect.php, line 113

Class

CropEffect
Crops an image resource.

Namespace

Drupal\crop\Plugin\ImageEffect

Code

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