class AddMailchimpEventWebformHandler in Mailchimp 2.x
Webform submission Event handler.
Plugin annotation
@WebformHandler(
id = "add_mailchimp_event",
label = @Translation("Add Mailchimp Event"),
category = @Translation("Mailchimp"),
description = @Translation("Trigger a Mailchimp Event on a submission."),
cardinality = \Drupal\webform\Plugin\WebformHandlerInterface::CARDINALITY_UNLIMITED,
results = \Drupal\webform\Plugin\WebformHandlerInterface::RESULTS_PROCESSED,
submission = \Drupal\webform\Plugin\WebformHandlerInterface::SUBMISSION_OPTIONAL,
tokens = TRUE,
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\webform\Plugin\WebformHandlerBase implements WebformHandlerInterface uses WebformEntityStorageTrait, WebformEntityInjectionTrait, WebformPluginSettingsTrait
- class \Drupal\mailchimp_events\Plugin\WebformHandler\AddMailchimpEventWebformHandler
- class \Drupal\webform\Plugin\WebformHandlerBase implements WebformHandlerInterface uses WebformEntityStorageTrait, WebformEntityInjectionTrait, WebformPluginSettingsTrait
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of AddMailchimpEventWebformHandler
File
- modules/
mailchimp_events/ src/ Plugin/ WebformHandler/ AddMailchimpEventWebformHandler.php, line 27
Namespace
Drupal\mailchimp_events\Plugin\WebformHandlerView source
class AddMailchimpEventWebformHandler extends WebformHandlerBase {
/**
* The webform token manager.
*
* @var \Drupal\webform\WebformTokenManagerInterface
*/
protected $tokenManager;
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
$instance = parent::create($container, $configuration, $plugin_id, $plugin_definition);
$instance->tokenManager = $container
->get('webform.token_manager');
return $instance;
}
/**
* {@inheritdoc}
*/
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();
}
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return [
'list' => '',
'email_type' => 'user',
'email' => '',
'event_name' => '',
'properties' => '',
'is_syncing' => FALSE,
'debug' => FALSE,
];
}
/**
* {@inheritdoc}
*/
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$mc_lists = mailchimp_get_lists();
$list_options = [];
foreach ($mc_lists as $key => $value) {
$list_options[$key] = $value->name;
}
$events = MailchimpEvent::loadMultiple();
foreach ($events as $key => $event) {
$event_options[$event
->id()] = $event
->getName();
}
$form['events'] = [
'#type' => 'fieldset',
'#title' => $this
->t('Events'),
];
$form['events']['list'] = [
'#type' => 'select',
'#title' => $this
->t('Mailchimp audience'),
'#weight' => '0',
'#required' => TRUE,
'#options' => $list_options,
'#default_value' => $this->configuration['list'] ?: FALSE,
];
// Options:
// Logged-in user email address
// An email field on the form
// A token
// A static value.
$form['events']['email_type'] = [
'#type' => 'radios',
'#title' => $this
->t('Email'),
'#description' => $this
->t('Which email address to send'),
'#options' => [
'user' => $this
->t('The logged in user'),
'form_email' => $this
->t('An email on the form'),
'single' => $this
->t('A specific email address'),
'token' => $this
->t('A token'),
],
'#weight' => '0',
'#required' => TRUE,
'#default_value' => $this->configuration['email_type'] ?: 'user',
];
$form_emails = [];
$elements = $this->webform
->getElementsInitializedAndFlattened();
foreach ($elements as $element_key => $element) {
if ($element['#type'] == 'email') {
$form_emails['[webform_submission:values:' . $element_key . ']'] = $element_key . ':"' . $element['#title'] . '"';
}
}
$form['events']['form_email'] = [
'#type' => 'select',
'#title' => $this
->t('Email'),
'#description' => $this
->t('An email address element on the webform.'),
'#options' => $form_emails,
'#weight' => '0',
'#states' => [
'visible' => [
':input[name="settings[email_type]"]' => [
'value' => 'form_email',
],
],
],
'#default_value' => $this->configuration['email'] && $this->configuration['email_type'] == 'form_email' ? $this->configuration['email'] : '',
];
$form['events']['single'] = [
'#type' => 'email',
'#title' => $this
->t('Email'),
'#description' => $this
->t('The email address to associate with this event.'),
'#weight' => '0',
'#states' => [
'visible' => [
':input[name="settings[email_type]"]' => [
'value' => 'single',
],
],
],
'#default_value' => $this->configuration['email'] && $this->configuration['email_type'] == 'single' ? $this->configuration['email'] : '',
];
$form['events']['token'] = [
'#type' => 'textfield',
'#title' => $this
->t('Token'),
'#description' => $this
->t('A token containing the email address to associate with this event.'),
'#weight' => '0',
'#states' => [
'visible' => [
':input[name="settings[email_type]"]' => [
'value' => 'token',
],
],
],
'#element_validate' => [
'token_element_validate',
],
'#default_value' => $this->configuration['email'] && $this->configuration['email_type'] == 'token' ? $this->configuration['email'] : '',
];
// If the event has been deleted, the event name is no longer valid.
$add_link = Link::createFromRoute('You can add Events here.', 'entity.mailchimp_event.add_form', [], [
'attributes' => [
'target' => '_blank',
],
]);
$form['events']['event_name'] = [
'#type' => 'select',
'#title' => $this
->t('Event Name'),
'#description' => $this
->t('The name of the Event. %add_link', [
'%add_link' => $add_link
->toString(),
]),
'#weight' => '0',
'#required' => TRUE,
'#options' => $event_options,
'#default_value' => $this->configuration['event_name'] ?: FALSE,
'#ajax' => [
'callback' => [
$this,
'getMailchimpEventProperty',
],
'disable-refocus' => FALSE,
'event' => 'change',
'wrapper' => 'property-holder',
'progress' => [
'type' => 'throbber',
'message' => $this
->t('Verifying entry...'),
],
],
];
$form['events']['event_value'] = [
'#type' => 'details',
'#title' => $this
->t('Properties'),
'#description' => $this
->t('Properties can be any string. This field supports tokens.'),
'#open' => TRUE,
'#prefix' => '<div id="property-holder">',
'#suffix' => '</div>',
];
if (isset($form_state
->getValues()['event_name'])) {
$event_id = $form_state
->getValues()['event_name'];
}
elseif ($this->configuration['event_name'] && $this
->isValidEventId($this->configuration['event_name'])) {
$event_id = $this->configuration['event_name'];
}
else {
$event_id = array_key_first($event_options);
}
$form['events']['event_value']['properties'] = $this
->getEventPropertiesById($event_id);
$form['events']['is_syncing'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Suppress automations in Mailchimp?'),
'#description' => $this
->t('Events will be logged, but automations will not trigger.'),
'#default_value' => isset($this->configuration['is_syncing']) ? $this->configuration['is_syncing'] : FALSE,
];
// Development.
$form['development'] = [
'#type' => 'details',
'#title' => $this
->t('Development settings'),
];
$form['development']['debug'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Enable debugging'),
'#description' => $this
->t('If checked, trigger events will be displayed onscreen to all users.'),
'#return_value' => TRUE,
'#default_value' => $this->configuration['debug'],
];
$this
->elementTokenValidate($form);
return $this
->setSettingsParents($form);
}
/**
* {@inheritdoc}
*/
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
if ($form_state
->hasAnyErrors()) {
return;
}
}
/**
* {@inheritdoc}
*/
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::submitConfigurationForm($form, $form_state);
$this
->applyFormStateToConfiguration($form_state);
$this->configuration['email'] = $this
->getEmailToken($form_state
->getValues());
$this->configuration['properties'] = $form_state
->getValue('events')['event_value']['properties'];
}
/**
* Finds the token for the email to send.
*
* @return string
* The token.
*/
protected function getEmailToken($values) {
$type = $values['email_type'];
$email = FALSE;
switch ($type) {
case 'user':
$email = '[current-user:mail]';
break;
case 'form_email':
$email = $values['events']['form_email'];
break;
case 'single':
$email = $values['events']['single'];
break;
case 'token':
$email = $values['events']['token'];
break;
}
return $email;
}
/**
* Finds the the email to send.
*
* @return string
* The email value.
*/
protected function getEmail() {
return $this
->replaceTokens($this->configuration['email'], $this
->getWebformSubmission(), [], [
'clear' => TRUE,
]);
}
/**
* {@inheritdoc}
*/
public function postSave(WebformSubmissionInterface $webform_submission, $update = TRUE) {
$email = $this
->getEmail();
$list = $this->configuration['list'];
$properties = $this->configuration['properties'];
$send_properties = [];
if ($properties) {
foreach ($properties as $key => $value) {
$send_properties[$key] = $this
->replaceTokens($value, $this
->getWebformSubmission(), [], [
'clear' => TRUE,
]);
}
}
$event_name = $this
->getEventName($this->configuration['event_name']);
$is_syncing = $this->configuration['is_syncing'];
$result = mailchimp_events_add_member_event($list, $email, $event_name, $send_properties, $is_syncing);
if ($this->configuration['debug']) {
$debug = $this
->t("Called function: mailchimp_events_add_member_event(%list, %email, %event_name, %properties, %is_syncing).", [
'%list' => $list,
'%email' => $email,
'%event_name' => $event_name,
'%properties' => print_r($send_properties, TRUE),
'%is_syncing' => $is_syncing,
]);
if ($result !== FALSE) {
$this
->messenger()
->addStatus($debug);
}
else {
$this
->messenger()
->addError($debug);
$this
->messenger()
->addError($this
->t('Member event add failed. Check the <a href=":watchdog">logs for Mailchimp</a>', [
':watchdog' => Url::fromRoute('dblog.overview')
->toString(),
]));
}
}
}
/**
* Gets the MailchimpActon's Name..
*
* @param int $id
* The Mailchimp Event ID.
*
* @return string
* The name of the event.
*/
protected function isValidEventId($id) {
return MailchimpEvent::load($id);
}
/**
* Gets the MailchimpActon's Name..
*
* @param int $id
* The Mailchimp Event ID.
*
* @return string
* The name of the event.
*/
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() : '';
}
/**
* Gets the Mailchimp Event properties, given the entity's ID.
*
* @param int $id
* The Mailchimp Event ID.
*
* @return array
* A set of form fields for each property on the entity.
*/
protected function getEventPropertiesById($id) {
$property_fields = [];
// Load all the properties of the event name.
$chosen_event = MailchimpEvent::load($id);
// Add a line for each property with a place to enter a value.
$properties = $chosen_event ? $chosen_event
->getProperties() : [];
foreach ($properties as $property) {
$property_fields[$property['value']] = [
'#type' => 'textfield',
'#title' => $property['value'],
'#weight' => '0',
'#default_value' => isset($this->configuration['properties'][$property['value']]) ? $this->configuration['properties'][$property['value']] : '',
];
}
return $property_fields;
}
/**
* Ajax call to return the event_value part of the form.
*
* @param array $form
* The form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The form_state.
*
* @return array
* The event_value part of the form.
*/
public function getMailchimpEventProperty(array &$form, FormStateInterface $form_state) {
// Return the prepared textfield.
return $form['settings']['events']['event_value'];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AddMailchimpEventWebformHandler:: |
protected | property |
The webform token manager. Overrides WebformHandlerBase:: |
|
AddMailchimpEventWebformHandler:: |
public | function |
Form constructor. Overrides WebformHandlerBase:: |
|
AddMailchimpEventWebformHandler:: |
public static | function |
IMPORTANT:
Webform handlers are initialized and serialized when they are attached to a
webform. Make sure not include any services as a dependency injection
that directly connect to the database. This will prevent
"LogicException: The database… Overrides WebformHandlerBase:: |
|
AddMailchimpEventWebformHandler:: |
public | function |
Gets default configuration for this plugin. Overrides WebformHandlerBase:: |
|
AddMailchimpEventWebformHandler:: |
protected | function | Finds the the email to send. | |
AddMailchimpEventWebformHandler:: |
protected | function | Finds the token for the email to send. | |
AddMailchimpEventWebformHandler:: |
protected | function | Gets the MailchimpActon's Name.. | |
AddMailchimpEventWebformHandler:: |
protected | function | Gets the Mailchimp Event properties, given the entity's ID. | |
AddMailchimpEventWebformHandler:: |
public | function | Ajax call to return the event_value part of the form. | |
AddMailchimpEventWebformHandler:: |
public | function |
Returns a render array summarizing the configuration of the webform handler. Overrides WebformHandlerBase:: |
|
AddMailchimpEventWebformHandler:: |
protected | function | Gets the MailchimpActon's Name.. | |
AddMailchimpEventWebformHandler:: |
public | function |
Acts on a saved webform submission before the insert or update hook is invoked. Overrides WebformHandlerBase:: |
|
AddMailchimpEventWebformHandler:: |
public | function |
Form submission handler. Overrides WebformHandlerBase:: |
|
AddMailchimpEventWebformHandler:: |
public | function |
Form validation handler. Overrides WebformHandlerBase:: |
|
DependencySerializationTrait:: |
protected | property | ||
DependencySerializationTrait:: |
protected | property | ||
DependencySerializationTrait:: |
public | function | 2 | |
DependencySerializationTrait:: |
public | function | 2 | |
MessengerTrait:: |
protected | property | The messenger. | 27 |
MessengerTrait:: |
public | function | Gets the messenger. | 27 |
MessengerTrait:: |
public | function | Sets the messenger. | |
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
2 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 98 |
StringTranslationTrait:: |
protected | property | The string translation service. | 4 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
WebformEntityInjectionTrait:: |
public | function | Get the webform that this handler is attached to. | |
WebformEntityInjectionTrait:: |
public | function | Set webform and webform submission entity. | |
WebformEntityInjectionTrait:: |
public | function | Reset webform and webform submission entity. | |
WebformEntityInjectionTrait:: |
public | function | ||
WebformEntityInjectionTrait:: |
public | function | Set the webform that this is handler is attached to. | |
WebformEntityInjectionTrait:: |
public | function | Get the webform submission that this handler is handling. | |
WebformEntityStorageTrait:: |
protected | property | An associate array of entity type storage aliases. | |
WebformEntityStorageTrait:: |
protected | property | The entity type manager. | 5 |
WebformEntityStorageTrait:: |
protected | function | Retrieves the entity storage. | |
WebformEntityStorageTrait:: |
protected | function | Retrieves the webform submission storage. | |
WebformEntityStorageTrait:: |
protected | function | Retrieves the webform storage. | |
WebformEntityStorageTrait:: |
public | function | Implements the magic __get() method. | |
WebformHandlerBase:: |
protected | property | The webform handler's conditions. | |
WebformHandlerBase:: |
protected | property | The webform handler's conditions result cache. | |
WebformHandlerBase:: |
protected | property | The webform submission (server-side) conditions (#states) validator. | |
WebformHandlerBase:: |
protected | property | The configuration factory. | 1 |
WebformHandlerBase:: |
protected | property | The webform handler ID. | |
WebformHandlerBase:: |
protected | property | The webform handler label. | |
WebformHandlerBase:: |
protected | property | The logger factory. | |
WebformHandlerBase:: |
protected | property | The webform variant notes. | |
WebformHandlerBase:: |
protected | property | The renderer. | 1 |
WebformHandlerBase:: |
protected | property | The webform handler status. | |
WebformHandlerBase:: |
protected | property |
The webform. Overrides WebformEntityInjectionTrait:: |
|
WebformHandlerBase:: |
protected | property |
The webform submission. Overrides WebformEntityInjectionTrait:: |
|
WebformHandlerBase:: |
protected | property | The weight of the webform handler. | |
WebformHandlerBase:: |
public | function |
Controls entity operation access to webform submission. Overrides WebformHandlerInterface:: |
1 |
WebformHandlerBase:: |
public | function |
Controls entity operation access to webform submission element. Overrides WebformHandlerInterface:: |
1 |
WebformHandlerBase:: |
public | function |
Alter webform element. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
public | function |
Alter webform submission webform elements. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
public | function |
Alter webform submission form. Overrides WebformHandlerInterface:: |
3 |
WebformHandlerBase:: |
protected | function | Apply submitted form state to configuration. | |
WebformHandlerBase:: |
protected | function | Build token tree element. | 2 |
WebformHandlerBase:: |
public | function |
Returns the webform handler cardinality settings. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Check handler conditions against a webform submission. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Confirm webform submission form. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
public | function |
Acts on a element after it has been created. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
public | function |
Acts on handler after it has been created and added to webform. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
public | function |
Acts on a element after it has been deleted. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
public | function |
Acts on handler after it has been removed. Overrides WebformHandlerInterface:: |
3 |
WebformHandlerBase:: |
public | function |
Returns the webform handler description. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Disables the webform handler. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
protected | function | Validate form that should have tokens in it. | |
WebformHandlerBase:: |
public | function |
Enables the webform handler. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Returns the conditions the webform handler. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Gets this plugin's configuration. Overrides ConfigurableInterface:: |
|
WebformHandlerBase:: |
public | function |
Returns the unique ID representing the webform handler. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Returns the label of the webform handler. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
protected | function | Get webform or webform_submission logger. | |
WebformHandlerBase:: |
public | function |
Returns notes of the webform variant. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Get configuration form's off-canvas width. Overrides WebformHandlerInterface:: |
1 |
WebformHandlerBase:: |
public | function |
Returns the status of the webform handler. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Returns the weight of the webform handler. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Determine if the webform handler requires anonymous submission tracking. Overrides WebformHandlerInterface:: |
1 |
WebformHandlerBase:: |
public | function |
Determine if this handle is applicable to the webform. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Returns the webform handler disabled indicator. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Returns the webform handler enabled indicator. Overrides WebformHandlerInterface:: |
1 |
WebformHandlerBase:: |
public | function |
Checks if the handler is excluded via webform.settings. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Returns the webform submission is optional indicator. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Returns the webform submission is required indicator. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Returns the webform handler label. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Alter/override a webform submission webform settings. Overrides WebformHandlerInterface:: |
3 |
WebformHandlerBase:: |
public | function |
Acts on a webform submission after it is created. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
public | function |
Acts on deleted a webform submission before the delete hook is invoked. Overrides WebformHandlerInterface:: |
4 |
WebformHandlerBase:: |
public | function |
Acts on loaded webform submission. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
public | function |
Acts on webform submissions after they are purged. Overrides WebformHandlerInterface:: |
1 |
WebformHandlerBase:: |
public | function |
Changes the values of an entity before it is created. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
public | function |
Acts on a webform submission before they are deleted and before hooks are invoked. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
public | function |
Acts on an webform submission about to be shown on a webform submission form. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Prepares variables for webform confirmation templates. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
public | function |
Acts on webform submissions before they are purged. Overrides WebformHandlerInterface:: |
1 |
WebformHandlerBase:: |
public | function |
Acts on a webform submission before the presave hook is invoked. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
protected | function | Replace tokens in text with no render context. | |
WebformHandlerBase:: |
public | function |
Sets the conditions for this webform handler. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Sets the configuration for this plugin instance. Overrides ConfigurableInterface:: |
|
WebformHandlerBase:: |
public | function |
Sets the id for this webform handler. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Sets the label for this webform handler. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Set notes for this webform variant. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
protected | function | Set configuration settings parents. | |
WebformHandlerBase:: |
protected | function | Set configuration settings parents. | |
WebformHandlerBase:: |
public | function |
Sets the status for this webform handler. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Sets the weight for this webform handler. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Submit webform submission form. Overrides WebformHandlerInterface:: |
4 |
WebformHandlerBase:: |
public | function |
Determine if webform handler supports conditions. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Determine if webform handler supports tokens. Overrides WebformHandlerInterface:: |
|
WebformHandlerBase:: |
public | function |
Acts on a element after it has been updated. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerBase:: |
public | function |
Acts on handler after it has been updated. Overrides WebformHandlerInterface:: |
3 |
WebformHandlerBase:: |
public | function |
Validate webform submission form. Overrides WebformHandlerInterface:: |
2 |
WebformHandlerInterface:: |
constant | Value indicating a single plugin instances are permitted. | ||
WebformHandlerInterface:: |
constant | Value indicating unlimited plugin instances are permitted. | ||
WebformHandlerInterface:: |
constant | Value indicating webform submissions are not processed (i.e. email or saved) by the handler. | ||
WebformHandlerInterface:: |
constant | Value indicating webform submissions are processed (i.e. email or saved) by the handler. | ||
WebformHandlerInterface:: |
constant | Value indicating webform submissions do not have to be stored in the database. | ||
WebformHandlerInterface:: |
constant | Value indicating webform submissions must be stored in the database. | ||
WebformPluginSettingsTrait:: |
public | function | ||
WebformPluginSettingsTrait:: |
public | function | ||
WebformPluginSettingsTrait:: |
public | function | ||
WebformPluginSettingsTrait:: |
public | function |