You are here

public function RotateImageEffect::getSummary in Drupal 8

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

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

Return value

array A render array.

Overrides ImageEffectBase::getSummary

File

core/modules/image/src/Plugin/ImageEffect/RotateImageEffect.php, line 58

Class

RotateImageEffect
Rotates an image resource.

Namespace

Drupal\image\Plugin\ImageEffect

Code

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