class SettingsWebformHandler in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformHandler/SettingsWebformHandler.php \Drupal\webform\Plugin\WebformHandler\SettingsWebformHandler
Webform submission settings handler.
Plugin annotation
@WebformHandler(
id = "settings",
label = @Translation("Settings"),
category = @Translation("Settings"),
description = @Translation("Allows Webform settings to be overridden based on submission data, source entity fields, and conditions."),
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\webform\Plugin\WebformHandler\SettingsWebformHandler
- class \Drupal\webform\Plugin\WebformHandlerBase implements WebformHandlerInterface uses WebformEntityStorageTrait, WebformEntityInjectionTrait, WebformPluginSettingsTrait
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of SettingsWebformHandler
File
- src/
Plugin/ WebformHandler/ SettingsWebformHandler.php, line 28
Namespace
Drupal\webform\Plugin\WebformHandlerView source
class SettingsWebformHandler extends WebformHandlerBase {
/**
* The typed config manager.
*
* @var \Drupal\Core\Config\TypedConfigManagerInterface
*/
protected $typedConfigManager;
/**
* 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->typedConfigManager = $container
->get('config.typed');
$instance->tokenManager = $container
->get('webform.token_manager');
return $instance;
}
/**
* {@inheritdoc}
*/
public function getSummary() {
$settings = $this
->getSettings();
$setting_definitions = $this
->getSettingsDefinitions();
$setting_override = $this
->getSettingsOverride();
foreach ($setting_override as $name => $value) {
switch ($setting_definitions[$name]['type']) {
case 'label':
case 'text':
case 'string':
$value = Unicode::truncate(strip_tags($value), 100, TRUE, TRUE);
break;
default:
break;
}
$settings['settings'][$name] = [
'title' => $setting_definitions[$name]['label'],
'value' => [
'#markup' => $value,
],
];
}
return [
'#settings' => $settings,
] + parent::getSummary();
}
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return [
'preview_title' => '',
'preview_message' => '',
'confirmation_url' => '',
'confirmation_title' => '',
'confirmation_message' => '',
'debug' => FALSE,
];
}
/**
* {@inheritdoc}
*/
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
// Preview settings.
$form['preview_settings'] = [
'#type' => 'details',
'#title' => $this
->t('Preview settings'),
'#open' => TRUE,
'#access' => !empty($this->configuration['preview_title']) || !empty($this->configuration['preview_message']) || $this
->getWebform()
->hasPreview(),
];
$form['preview_settings']['preview_title'] = [
'#type' => 'textfield',
'#title' => $this
->t('Preview page title'),
'#description' => $this
->t('The title displayed on the preview page.'),
'#default_value' => $this->configuration['preview_title'],
];
$form['preview_settings']['preview_message'] = [
'#type' => 'webform_html_editor',
'#title' => $this
->t('Preview message'),
'#description' => $this
->t('A message to be displayed on the preview page.'),
'#default_value' => $this->configuration['preview_message'],
];
$form['preview_settings']['token_tree_link'] = $this
->buildTokenTreeElement();
// Confirmation settings.
$confirmation_type = $this
->getWebform()
->getSetting('confirmation_type');
$has_confirmation_url = in_array($confirmation_type, [
WebformInterface::CONFIRMATION_URL,
WebformInterface::CONFIRMATION_URL_MESSAGE,
]);
$has_confirmation_title = in_array($confirmation_type, [
WebformInterface::CONFIRMATION_PAGE,
WebformInterface::CONFIRMATION_MODAL,
]);
$has_confirmation_message = !in_array($confirmation_type, [
WebformInterface::CONFIRMATION_URL,
]);
$form['confirmation_settings'] = [
'#type' => 'details',
'#title' => $this
->t('Confirmation settings'),
'#open' => TRUE,
];
$form['confirmation_settings']['confirmation_url'] = [
'#type' => 'textfield',
'#title' => $this
->t('Confirmation URL'),
'#description' => $this
->t('The URL or path to redirect the user to upon successful submission.') . '<br/>' . t('Paths beginning with a forward slash (/) will redirect be treated as root-relative. Paths without a forward slash (/) will redirect be treated as Drupal relative path.'),
'#default_value' => $this->configuration['confirmation_url'],
'#access' => !empty($this->configuration['confirmation_url']) || $has_confirmation_url,
'#maxlength' => NULL,
];
$form['confirmation_settings']['confirmation_title'] = [
'#type' => 'textfield',
'#title' => $this
->t('Confirmation title'),
'#description' => $this
->t('Page title to be shown upon successful submission.'),
'#default_value' => $this->configuration['confirmation_title'],
'#access' => !empty($this->configuration['confirmation_title']) || $has_confirmation_title,
];
$form['confirmation_settings']['confirmation_message'] = [
'#type' => 'webform_html_editor',
'#title' => $this
->t('Confirmation message'),
'#description' => $this
->t('Message to be shown upon successful submission.'),
'#default_value' => $this->configuration['confirmation_message'],
'#access' => !empty($this->configuration['confirmation_message']) || $has_confirmation_message,
];
$form['confirmation_settings']['token_tree_link'] = $this
->buildTokenTreeElement();
// Custom settings.
$custom_settings = $this->configuration;
unset($custom_settings['debug']);
$custom_settings = array_diff_key($custom_settings, $this
->defaultConfiguration());
$form['custom_settings'] = [
'#type' => 'details',
'#title' => $this
->t('Custom settings'),
'#open' => TRUE,
];
$form['custom_settings']['custom'] = [
'#type' => 'webform_codemirror',
'#mode' => 'yaml',
'#title' => $this
->t('Custom settings (YAML)'),
'#description' => $this
->t('Enter the setting name and value as YAML.'),
'#default_value' => $custom_settings,
// Must set #parents because custom is not a configuration value.
// @see \Drupal\webform\Plugin\WebformHandler\SettingsWebformHandler::submitConfigurationForm
'#parents' => [
'settings',
'custom',
],
];
// Custom settings definitions.
$form['custom_settings']['definitions'] = [
'#type' => 'details',
'#title' => $this
->t('Available custom settings'),
];
$rows = [];
$webform_config_settings = $this
->getSettingsDefinitions();
foreach ($webform_config_settings as $name => $webform_config_setting) {
$rows[] = [
'name' => [
'data' => [
'#markup' => '<b>' . $name . '</b>',
],
],
'label' => $webform_config_setting['label'],
'type' => $webform_config_setting['type'],
];
}
$form['custom_settings']['definitions']['warning'] = [
'#type' => 'webform_message',
'#message_type' => 'warning',
'#message_message' => $this
->t('All of the below webform settings can be overridden but overriding certain settings can trigger unexpected results.'),
];
$form['custom_settings']['definitions']['table'] = [
'#type' => 'table',
'#header' => [
'name' => $this
->t('Name'),
'label' => $this
->t('Label'),
'type' => $this
->t('Type'),
],
'#rows' => $rows,
];
// 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, settings 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;
}
// Make sure custom settings are valid.
$custom = $form_state
->getValue('custom');
if ($unknown_custom_settings = array_diff_key($custom, Webform::getDefaultSettings())) {
$t_args = [
'%name' => WebformArrayHelper::toString(array_keys($unknown_custom_settings)),
];
$form_state
->setErrorByName('custom', $this
->t('Unknown custom %name setting(s).', $t_args));
}
}
/**
* {@inheritdoc}
*/
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
// Completely reset configuration so that custom configuration will always
// be reset.
$this->configuration = $this
->defaultConfiguration();
parent::submitConfigurationForm($form, $form_state);
$this
->applyFormStateToConfiguration($form_state);
// Remove all empty strings from preview and confirmation settings.
$this->configuration = array_filter($this->configuration);
// Cast debug.
$this->configuration['debug'] = (bool) $form_state
->getValue('debug');
// Append custom settings to configuration.
$this->configuration += $form_state
->getValue('custom');
}
/**
* {@inheritdoc}
*/
public function overrideSettings(array &$settings, WebformSubmissionInterface $webform_submission) {
$settings_override = $this
->getSubmissionSettingsOverride($webform_submission);
foreach ($settings_override as $name => $value) {
$settings[$name] = $value;
}
$this
->displayDebug($webform_submission);
}
/****************************************************************************/
// Debug handlers.
/****************************************************************************/
/**
* Display debugging information about the current action.
*/
protected function displayDebug(WebformSubmissionInterface $webform_submission) {
if (!$this->configuration['debug']) {
return;
}
$settings_definitions = $this
->getSettingsDefinitions();
$settings_override = $this
->getSettingsOverride();
$submission_settings_override = $this
->getSubmissionSettingsOverride($webform_submission);
// Set header.
$header = [
'name' => $this
->t('Name'),
'label' => [
'data' => $this
->t('Label'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
'type' => [
'data' => $this
->t('Type'),
'class' => [
RESPONSIVE_PRIORITY_LOW,
],
],
'setting' => [
'data' => $this
->t('Setting Value'),
'class' => [
RESPONSIVE_PRIORITY_MEDIUM,
],
],
'submission' => $this
->t('Submission Value'),
];
// Set rows.
$rows = [];
foreach ($settings_override as $name => $value) {
$rows[] = [
'name' => [
'data' => [
'#markup' => '<b>' . $name . '</b>',
],
],
'label' => $settings_definitions[$name]['label'],
'type' => $settings_definitions[$name]['type'],
'setting' => $settings_override[$name],
'submission' => $submission_settings_override[$name],
];
}
$build = [
'#type' => 'details',
'#title' => $this
->t('Debug: Settings: @title', [
'@title' => $this
->label(),
]),
'#open' => TRUE,
];
$build['table'] = [
'#type' => 'table',
'#header' => $header,
'#rows' => $rows,
];
$this
->messenger()
->addWarning($this->renderer
->renderPlain($build));
}
/****************************************************************************/
// Settings helpers.
/****************************************************************************/
/**
* Get webform setting definitions.
*
* @return array
* Webform setting definitions defined in webform.entity.webform.schema.yml
*/
protected function getSettingsDefinitions() {
$definition = $this->typedConfigManager
->getDefinition('webform.webform.*');
return $definition['mapping']['settings']['mapping'];
}
/**
* Get overridden settings.
*
* @return array
* An associative array containing overridden settings.
*/
protected function getSettingsOverride() {
$settings = $this->configuration;
unset($settings['debug']);
$default_configuration = $this
->defaultConfiguration();
foreach ($settings as $name => $value) {
if (isset($default_configuration[$name]) && $default_configuration[$name] === $value) {
unset($settings[$name]);
}
}
return $settings;
}
/**
* Get webform submission's overridden settings.
*
* Replaces submissions token values and cast booleans and integers.
*
* @param \Drupal\webform\WebformSubmissionInterface $webform_submission
* A webform submission.
*
* @return array
* An associative array containing overridden settings.
*/
protected function getSubmissionSettingsOverride(WebformSubmissionInterface $webform_submission) {
$settings_definitions = $this
->getSettingsDefinitions();
$settings_override = $this
->getSettingsOverride();
foreach ($settings_override as $name => $value) {
if (!isset($settings_definitions[$name])) {
continue;
}
// Replace token value and cast booleans and integers.
$type = $settings_definitions[$name]['type'];
if (in_array($type, [
'boolean',
'integer',
])) {
$value = $this
->replaceTokens($value, $webform_submission);
settype($value, $type);
$settings_override[$name] = $value;
}
}
return $settings_override;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
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 |
SettingsWebformHandler:: |
protected | property |
The webform token manager. Overrides WebformHandlerBase:: |
|
SettingsWebformHandler:: |
protected | property | The typed config manager. | |
SettingsWebformHandler:: |
public | function |
Form constructor. Overrides WebformHandlerBase:: |
|
SettingsWebformHandler:: |
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:: |
|
SettingsWebformHandler:: |
public | function |
Gets default configuration for this plugin. Overrides WebformHandlerBase:: |
|
SettingsWebformHandler:: |
protected | function | Display debugging information about the current action. | |
SettingsWebformHandler:: |
protected | function | Get webform setting definitions. | |
SettingsWebformHandler:: |
protected | function | Get overridden settings. | |
SettingsWebformHandler:: |
protected | function | Get webform submission's overridden settings. | |
SettingsWebformHandler:: |
public | function |
Returns a render array summarizing the configuration of the webform handler. Overrides WebformHandlerBase:: |
|
SettingsWebformHandler:: |
public | function |
Alter/override a webform submission webform settings. Overrides WebformHandlerBase:: |
|
SettingsWebformHandler:: |
public | function |
Form submission handler. Overrides WebformHandlerBase:: |
|
SettingsWebformHandler:: |
public | function |
Form validation handler. Overrides WebformHandlerBase:: |
|
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 |
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 |
Acts on a saved webform submission before the insert or update hook is invoked. Overrides WebformHandlerInterface:: |
5 |
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 |