public function SmartCropImageEffect::getSummary in Image Effects 8
Same name and namespace in other branches
- 8.3 src/Plugin/ImageEffect/SmartCropImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\SmartCropImageEffect::getSummary()
- 8.2 src/Plugin/ImageEffect/SmartCropImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\SmartCropImageEffect::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/ SmartCropImageEffect.php, line 37
Class
- SmartCropImageEffect
- Crop an image preserving the portion with the most entropy.
Namespace
Drupal\image_effects\Plugin\ImageEffectCode
public function getSummary() {
return [
'#theme' => 'image_effects_smart_crop_summary',
'#data' => $this->configuration,
] + parent::getSummary();
}