You are here

public function ImageEffectBase::getSummary in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 92
Contains \Drupal\image\ImageEffectBase.

Class

ImageEffectBase
Provides a base class for image effects.

Namespace

Drupal\image

Code

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