You are here

public function ImageWatermarkEffect::getSummary in Image effect kit 8

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

Return value

array A render array.

Overrides ImageEffectBase::getSummary

File

src/Plugin/ImageEffect/ImageWatermarkEffect.php, line 63
Contains \Drupal\iek\Plugin\ImageEffect\ImageWatermarkEffect.

Class

ImageWatermarkEffect
IEK - Watermark.

Namespace

Drupal\iek\Plugin\ImageEffect

Code

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