You are here

public function ScaleImageEffect::getSummary in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/image/src/Plugin/ImageEffect/ScaleImageEffect.php \Drupal\image\Plugin\ImageEffect\ScaleImageEffect::getSummary()
  2. 10 core/modules/image/src/Plugin/ImageEffect/ScaleImageEffect.php \Drupal\image\Plugin\ImageEffect\ScaleImageEffect::getSummary()

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

Return value

array A render array.

Overrides ResizeImageEffect::getSummary

File

core/modules/image/src/Plugin/ImageEffect/ScaleImageEffect.php, line 43

Class

ScaleImageEffect
Scales an image resource.

Namespace

Drupal\image\Plugin\ImageEffect

Code

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