public function CompositeImageEffect::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/ CompositeImageEffect.php, line 40
Class
- CompositeImageEffect
- Composite one image onto another.
Namespace
Drupal\imagick\Plugin\ImageEffectCode
public function getSummary() {
$path = $this->configuration['path'];
$summary = [
'#markup' => '- ' . (file_exists($path) ? $path : t('Invalid file path')),
'#effect' => [
'id' => $this->pluginDefinition['id'],
'label' => $this
->label(),
'description' => $this->pluginDefinition['description'],
],
];
return $summary;
}