You are here

public function ScaleAndSmartCropImageEffect::getSummary in Image Effects 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/ImageEffect/ScaleAndSmartCropImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\ScaleAndSmartCropImageEffect::getSummary()
  2. 8 src/Plugin/ImageEffect/ScaleAndSmartCropImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\ScaleAndSmartCropImageEffect::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/ScaleAndSmartCropImageEffect.php, line 37

Class

ScaleAndSmartCropImageEffect
Scale and crop an image preserving the portion with the most entropy.

Namespace

Drupal\image_effects\Plugin\ImageEffect

Code

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