public function CropImageEffect::getSummary in Drupal 9
Same name and namespace in other branches
- 8 core/modules/image/src/Plugin/ImageEffect/CropImageEffect.php \Drupal\image\Plugin\ImageEffect\CropImageEffect::getSummary()
- 10 core/modules/image/src/Plugin/ImageEffect/CropImageEffect.php \Drupal\image\Plugin\ImageEffect\CropImageEffect::getSummary()
Returns a render array summarizing the configuration of the image effect.
Return value
array A render array.
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 36
Class
- CropImageEffect
- Crops an image resource.
Namespace
Drupal\image\Plugin\ImageEffectCode
public function getSummary() {
$summary = [
'#theme' => 'image_crop_summary',
'#data' => $this->configuration,
];
$summary += parent::getSummary();
return $summary;
}