public function ImageFilterEffect::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/ ImageFilterEffect.php, line 58 - Contains \Drupal\iek\Plugin\ImageEffect\ImageFilterEffect.
Class
- ImageFilterEffect
- IEK - Filter.
Namespace
Drupal\iek\Plugin\ImageEffectCode
public function getSummary() {
$data = $this->configuration;
$filters = iek_get_image_filters();
$data['filter_name'] = $filters[$data['filter_name']];
$summary = [
'#theme' => 'iek_image_filter_summary',
'#data' => $data,
];
$summary += parent::getSummary();
return $summary;
}