class ActionWebformHandler in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformHandler/ActionWebformHandler.php \Drupal\webform\Plugin\WebformHandler\ActionWebformHandler
Webform submission action handler.
Plugin annotation
@WebformHandler(
id = "action",
label = @Translation("Action"),
category = @Translation("Action"),
description = @Translation("Trigger an action 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\webform\Plugin\WebformHandler\ActionWebformHandler
- class \Drupal\webform\Plugin\WebformHandlerBase implements WebformHandlerInterface uses WebformEntityStorageTrait, WebformEntityInjectionTrait, WebformPluginSettingsTrait
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of ActionWebformHandler
File
- src/
Plugin/ WebformHandler/ ActionWebformHandler.php, line 26
Namespace
Drupal\webform\Plugin\WebformHandlerView source
class ActionWebformHandler 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() {
$settings = $this
->getSettings();
// Get state labels.
$states = [
WebformSubmissionInterface::STATE_DRAFT_CREATED => $this
->t('Draft created'),
WebformSubmissionInterface::STATE_DRAFT_UPDATED => $this
->t('Draft updated'),
WebformSubmissionInterface::STATE_CONVERTED => $this
->t('Converted'),
WebformSubmissionInterface::STATE_COMPLETED => $this
->t('Completed'),
WebformSubmissionInterface::STATE_UPDATED => $this
->t('Updated'),
WebformSubmissionInterface::STATE_LOCKED => $this
->t('Locked'),
];
$settings['states'] = array_intersect_key($states, array_combine($settings['states'], $settings['states']));
// Get message type.
$message_types = [
'status' => $this
->t('Status'),
'error' => $this
->t('Error'),
'warning' => $this
->t('Warning'),
'info' => $this
->t('Info'),
];
$settings['message'] = $settings['message'] ? WebformHtmlEditor::checkMarkup($settings['message']) : NULL;
$settings['message_type'] = $message_types[$settings['message_type']];
// Get data element keys.
$data = Yaml::decode($settings['data']) ?: [];
$settings['data'] = array_keys($data);
return [
'#settings' => $settings,
] + parent::getSummary();
}
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return [
'states' => [
WebformSubmissionInterface::STATE_COMPLETED,
],
'notes' => '',
'sticky' => NULL,
'locked' => NULL,
'data' => '',
'message' => '',
'message_type' => 'status',
'debug' => FALSE,
];
}
/**
* {@inheritdoc}
*/
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$results_disabled = $this
->getWebform()
->getSetting('results_disabled');
$form['trigger'] = [
'#type' => 'fieldset',
'#title' => $this
->t('Trigger'),
];
$form['trigger']['states'] = [
'#type' => 'checkboxes',
'#title' => $this
->t('Execute'),
'#options' => [
WebformSubmissionInterface::STATE_DRAFT_CREATED => $this
->t('…when <b>draft is created</b>.'),
WebformSubmissionInterface::STATE_DRAFT_UPDATED => $this
->t('…when <b>draft is updated</b>.'),
WebformSubmissionInterface::STATE_CONVERTED => $this
->t('…when anonymous <b>submission is converted</b> to authenticated.'),
WebformSubmissionInterface::STATE_COMPLETED => $this
->t('…when <b>submission is completed</b>.'),
WebformSubmissionInterface::STATE_UPDATED => $this
->t('…when <b>submission is updated</b>.'),
],
'#required' => TRUE,
'#access' => $results_disabled ? FALSE : TRUE,
'#default_value' => $results_disabled ? [
WebformSubmissionInterface::STATE_COMPLETED,
] : $this->configuration['states'],
];
$form['actions'] = [
'#type' => 'fieldset',
'#title' => $this
->t('Actions'),
];
$form['actions']['sticky'] = [
'#type' => 'select',
'#title' => $this
->t('Change status'),
'#empty_option' => $this
->t('- None -'),
'#options' => [
'1' => $this
->t('Flag/Star'),
'0' => $this
->t('Unflag/Unstar'),
],
'#default_value' => $this->configuration['sticky'] === NULL ? '' : ($this->configuration['sticky'] ? '1' : '0'),
];
$form['actions']['locked'] = [
'#type' => 'select',
'#title' => $this
->t('Change lock'),
'#description' => $this
->t('Webform submissions can only be unlocked programatically.'),
'#empty_option' => $this
->t('- None -'),
'#options' => [
'' => '',
'1' => $this
->t('Lock'),
'0' => $this
->t('Unlock'),
],
'#default_value' => $this->configuration['locked'] === NULL ? '' : ($this->configuration['locked'] ? '1' : '0'),
];
$form['actions']['notes'] = [
'#type' => 'webform_codemirror',
'#mode' => 'text',
'#title' => $this
->t('Append the below text to notes (Plain text)'),
'#default_value' => $this->configuration['notes'],
];
$form['actions']['message'] = [
'#type' => 'webform_html_editor',
'#title' => $this
->t('Display message'),
'#default_value' => $this->configuration['message'],
];
$form['actions']['message_type'] = [
'#type' => 'select',
'#title' => $this
->t('Display message type'),
'#options' => [
'status' => $this
->t('Status'),
'error' => $this
->t('Error'),
'warning' => $this
->t('Warning'),
'info' => $this
->t('Info'),
],
'#default_value' => $this->configuration['message_type'],
];
$form['actions']['data'] = [
'#type' => 'webform_codemirror',
'#mode' => 'yaml',
'#title' => $this
->t('Update the below submission data. (YAML)'),
'#default_value' => $this->configuration['data'],
];
$elements_rows = [];
$elements = $this
->getWebform()
->getElementsInitializedFlattenedAndHasValue();
foreach ($elements as $element_key => $element) {
$elements_rows[] = [
$element_key,
isset($element['#title']) ? $element['#title'] : '',
];
}
$form['actions']['elements'] = [
'#type' => 'details',
'#title' => $this
->t('Available element keys'),
'element_keys' => [
'#type' => 'table',
'#header' => [
$this
->t('Element key'),
$this
->t('Element title'),
],
'#rows' => $elements_rows,
],
];
$form['actions']['token_tree_link'] = $this
->buildTokenTreeElement();
// 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 actions 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;
}
// Validate data element keys.
$elements = $this
->getWebform()
->getElementsInitializedFlattenedAndHasValue();
$data = Yaml::decode($form_state
->getValue('data')) ?: [];
foreach ($data as $key => $value) {
if (!isset($elements[$key])) {
$form_state
->setErrorByName('data', $this
->t('%key is not valid element key.', [
'%key' => $key,
]));
}
}
}
/**
* {@inheritdoc}
*/
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::submitConfigurationForm($form, $form_state);
$this
->applyFormStateToConfiguration($form_state);
// Cleanup states.
$this->configuration['states'] = array_values(array_filter($this->configuration['states']));
// Cleanup sticky.
if ($form_state
->getValue('sticky') === '') {
$this->configuration['sticky'] = NULL;
}
// Cleanup locked.
if ($form_state
->getValue('locked') === '') {
$this->configuration['locked'] = NULL;
}
}
/**
* {@inheritdoc}
*/
public function postSave(WebformSubmissionInterface $webform_submission, $update = TRUE) {
$state = $webform_submission
->getWebform()
->getSetting('results_disabled') ? WebformSubmissionInterface::STATE_COMPLETED : $webform_submission
->getState();
if (in_array($state, $this->configuration['states'])) {
$this
->executeAction($webform_submission);
}
}
/****************************************************************************/
// Action helper methods.
/****************************************************************************/
/**
* Execute this action.
*
* @param \Drupal\webform\WebformSubmissionInterface $webform_submission
* A webform submission.
*/
protected function executeAction(WebformSubmissionInterface $webform_submission) {
// Set sticky.
if ($this->configuration['sticky'] !== NULL) {
$webform_submission
->setSticky($this->configuration['sticky']);
}
// Set locked.
if ($this->configuration['locked'] !== NULL) {
$webform_submission
->setLocked($this->configuration['locked']);
}
// Append notes.
if ($this->configuration['notes']) {
$notes = rtrim($webform_submission
->getNotes());
$notes .= ($notes ? PHP_EOL . PHP_EOL : '') . $this
->replaceTokens($this->configuration['notes'], $webform_submission);
$webform_submission
->setNotes($notes);
}
// Set data.
if ($this->configuration['data']) {
$data = Yaml::decode($this->configuration['data']);
$data = $this
->replaceTokens($data, $webform_submission);
foreach ($data as $key => $value) {
$webform_submission
->setElementData($key, $value);
}
}
// Display message.
if ($this->configuration['message']) {
$message = WebformHtmlEditor::checkMarkup($this
->replaceTokens($this->configuration['message'], $webform_submission));
$message_type = $this->configuration['message_type'];
$this
->messenger()
->addMessage($this->renderer
->renderPlain($message), $message_type);
}
// Resave the webform submission without trigger any hooks or handlers.
$webform_submission
->resave();
// Display debugging information about the current action.
$this
->displayDebug($webform_submission);
}
/**
* Display debugging information about the current action.
*
* @param \Drupal\webform\WebformSubmissionInterface $webform_submission
* A webform submission.
*/
protected function displayDebug(WebformSubmissionInterface $webform_submission) {
if (!$this->configuration['debug']) {
return;
}
$build = [
'#type' => 'details',
'#title' => $this
->t('Debug: Action: @title', [
'@title' => $this
->label(),
]),
'#open' => TRUE,
];
$state = $webform_submission
->getWebform()
->getSetting('results_disabled') ? WebformSubmissionInterface::STATE_COMPLETED : $webform_submission
->getState();
$build['state'] = [
'#type' => 'item',
'#title' => $this
->t('State'),
'#markup' => $state,
'#wrapper_attributes' => [
'class' => [
'container-inline',
],
'style' => 'margin: 0',
],
];
$build['sticky'] = [
'#type' => 'item',
'#title' => $this
->t('Status'),
'#markup' => $this->configuration['sticky'] === NULL ? '' : ($this->configuration['sticky'] ? $this
->t('Flagged/Starred') : $this
->t('Unflagged/Unstarred')),
'#wrapper_attributes' => [
'class' => [
'container-inline',
],
'style' => 'margin: 0',
],
];
$build['locked'] = [
'#type' => 'item',
'#title' => $this
->t('Lock'),
'#markup' => $this->configuration['locked'] === NULL ? '' : ($this->configuration['locked'] ? $this
->t('Locked') : $this
->t('Unlocked')),
'#wrapper_attributes' => [
'class' => [
'container-inline',
],
'style' => 'margin: 0',
],
];
$build['notes'] = [
'#type' => 'item',
'#title' => $this
->t('Notes'),
'#markup' => $this->configuration['notes'],
'#wrapper_attributes' => [
'class' => [
'container-inline',
],
'style' => 'margin: 0',
],
];
$build['data'] = [
'#type' => 'item',
'#title' => $this
->t('Data'),
'#markup' => $this->configuration['notes'] ? '<pre>' . htmlentities($this->configuration['notes']) . '</pre>' : '',
'#wrapper_attributes' => [
'class' => [
'container-inline',
],
'style' => 'margin: 0',
],
];
$build['message'] = [
'#type' => 'item',
'#title' => $this
->t('Message'),
'#markup' => $this->configuration['message'],
'#wrapper_attributes' => [
'class' => [
'container-inline',
],
'style' => 'margin: 0',
],
];
$build['message_type'] = [
'#type' => 'item',
'#title' => $this
->t('Message type'),
'#markup' => $this->configuration['message_type'],
'#wrapper_attributes' => [
'class' => [
'container-inline',
],
'style' => 'margin: 0',
],
];
$this
->messenger()
->addWarning($this->renderer
->renderPlain($build), TRUE);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ActionWebformHandler:: |
protected | property |
The webform token manager. Overrides WebformHandlerBase:: |
|
ActionWebformHandler:: |
public | function |
Form constructor. Overrides WebformHandlerBase:: |
|
ActionWebformHandler:: |
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:: |
|
ActionWebformHandler:: |
public | function |
Gets default configuration for this plugin. Overrides WebformHandlerBase:: |
|
ActionWebformHandler:: |
protected | function | Display debugging information about the current action. | |
ActionWebformHandler:: |
protected | function | Execute this action. | |
ActionWebformHandler:: |
public | function |
Returns a render array summarizing the configuration of the webform handler. Overrides WebformHandlerBase:: |
|
ActionWebformHandler:: |
public | function |
Acts on a saved webform submission before the insert or update hook is invoked. Overrides WebformHandlerBase:: |
|
ActionWebformHandler:: |
public | function |
Form submission handler. Overrides WebformHandlerBase:: |
|
ActionWebformHandler:: |
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 |