function ImageEffectBase::getSummary

Same name in other branches
  1. 9 core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::getSummary()
  2. 8.9.x core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::getSummary()
  3. 10 core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::getSummary()

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'],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.