protected function AddMailchimpEventWebformHandler::getEventName in Mailchimp 2.x
Gets the MailchimpActon's Name..
Parameters
int $id: The Mailchimp Event ID.
Return value
string The name of the event.
2 calls to AddMailchimpEventWebformHandler::getEventName()
- AddMailchimpEventWebformHandler::getSummary in modules/
mailchimp_events/ src/ Plugin/ WebformHandler/ AddMailchimpEventWebformHandler.php - Returns a render array summarizing the configuration of the webform handler.
- AddMailchimpEventWebformHandler::postSave in modules/
mailchimp_events/ src/ Plugin/ WebformHandler/ AddMailchimpEventWebformHandler.php - Acts on a saved webform submission before the insert or update hook is invoked.
File
- modules/
mailchimp_events/ src/ Plugin/ WebformHandler/ AddMailchimpEventWebformHandler.php, line 362
Class
- AddMailchimpEventWebformHandler
- Webform submission Event handler.
Namespace
Drupal\mailchimp_events\Plugin\WebformHandlerCode
protected function getEventName($id) {
$chosen_event = MailchimpEvent::load($id);
// Add a line for each property with a place to enter a value.
return $chosen_event ? $chosen_event
->getName() : '';
}