You are here

public function ImageEffectBase::getSummary in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::getSummary()

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

Return value

array A render array.

Overrides ImageEffectInterface::getSummary

3 calls to ImageEffectBase::getSummary()
ConvertImageEffect::getSummary in core/modules/image/src/Plugin/ImageEffect/ConvertImageEffect.php
Returns a render array summarizing the configuration of the image effect.
ResizeImageEffect::getSummary in core/modules/image/src/Plugin/ImageEffect/ResizeImageEffect.php
Returns a render array summarizing the configuration of the image effect.
RotateImageEffect::getSummary in core/modules/image/src/Plugin/ImageEffect/RotateImageEffect.php
Returns a render array summarizing the configuration of the image effect.
3 methods override ImageEffectBase::getSummary()
ConvertImageEffect::getSummary in core/modules/image/src/Plugin/ImageEffect/ConvertImageEffect.php
Returns a render array summarizing the configuration of the image effect.
ResizeImageEffect::getSummary in core/modules/image/src/Plugin/ImageEffect/ResizeImageEffect.php
Returns a render array summarizing the configuration of the image effect.
RotateImageEffect::getSummary in core/modules/image/src/Plugin/ImageEffect/RotateImageEffect.php
Returns a render array summarizing the configuration of the image effect.

File

core/modules/image/src/ImageEffectBase.php, line 87

Class

ImageEffectBase
Provides a base class for image effects.

Namespace

Drupal\image

Code

public function getSummary() {
  return [
    '#markup' => '',
    '#effect' => [
      'id' => $this->pluginDefinition['id'],
      'label' => $this
        ->label(),
      'description' => $this->pluginDefinition['description'],
    ],
  ];
}