public function ScaleAndCropImageEffect::getSummary in Drupal 8
Same name and namespace in other branches
- 9 core/modules/image/src/Plugin/ImageEffect/ScaleAndCropImageEffect.php \Drupal\image\Plugin\ImageEffect\ScaleAndCropImageEffect::getSummary()
- 10 core/modules/image/src/Plugin/ImageEffect/ScaleAndCropImageEffect.php \Drupal\image\Plugin\ImageEffect\ScaleAndCropImageEffect::getSummary()
Returns a render array summarizing the configuration of the image effect.
Return value
array A render array.
Overrides CropImageEffect::getSummary
File
- core/
modules/ image/ src/ Plugin/ ImageEffect/ ScaleAndCropImageEffect.php, line 40
Class
- ScaleAndCropImageEffect
- Scales and crops an image resource.
Namespace
Drupal\image\Plugin\ImageEffectCode
public function getSummary() {
$summary = [
'#theme' => 'image_scale_and_crop_summary',
'#data' => $this->configuration,
];
$summary += parent::getSummary();
return $summary;
}