public function AddMailchimpEventWebformHandler::getSummary in Mailchimp 2.x
Returns a render array summarizing the configuration of the webform handler.
Return value
array A render array.
Overrides WebformHandlerBase::getSummary
File
- modules/
mailchimp_events/ src/ Plugin/ WebformHandler/ AddMailchimpEventWebformHandler.php, line 48
Class
- AddMailchimpEventWebformHandler
- Webform submission Event handler.
Namespace
Drupal\mailchimp_events\Plugin\WebformHandlerCode
public function getSummary() {
$configuration = $this
->getConfiguration();
$settings = $configuration['settings'];
$list = mailchimp_get_list($settings['list']);
$settings['list'] = $list ? $list->name : '';
$settings['event_name'] = $this
->getEventName($settings['event_name']);
$settings['event_value'] = $settings['properties'];
return [
'#settings' => $settings,
] + parent::getSummary();
}