You are here

public function ImageEffectBase::getSummary in Drupal 10

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

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