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\ImageEffectCode
public function getSummary() {
$summary = parent::getSummary();
$summary['#markup'] = '- ' . $this->configuration['alpha'] . '%';
return $summary;
}