You are here

public function OpacityImageEffect::getSummary in Imagick 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/OpacityImageEffect.php, line 37

Class

OpacityImageEffect
Applies an opacity effect on an image resource.

Namespace

Drupal\imagick\Plugin\ImageEffect

Code

public function getSummary() {
  $summary = parent::getSummary();
  $summary['#markup'] = '- ' . $this->configuration['alpha'] . '%';
  return $summary;
}