public function ImageOverlayEffect::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/ ImageOverlayEffect.php, line 55 - Contains \Drupal\iek\Plugin\ImageEffect\ImageOverlayEffect.
Class
- ImageOverlayEffect
- IEK - Overlay.
Namespace
Drupal\iek\Plugin\ImageEffectCode
public function getSummary() {
$data = $this->configuration;
$iek_overlays = iek_get_overlays();
foreach ($iek_overlays as $item1) {
foreach ($item1['children'] as $item2) {
if ($item2['name'] == $data['overlay_name']) {
$data['overlay_name'] = $item2['title'];
}
}
}
$summary = [
'#theme' => 'iek_image_overlay_summary',
'#data' => $data,
];
$summary += parent::getSummary();
return $summary;
}