You are here

protected function WebformHandlerBase::setSettingsParents in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformHandlerBase.php \Drupal\webform\Plugin\WebformHandlerBase::setSettingsParents()

Set configuration settings parents.

This helper method looks looks for the handler default configuration keys within a form and set a matching element's #parents property to ['settings', '{element_key}']

Parameters

array $elements: An array of form elements.

Return value

array Form element with #parents set.

9 calls to WebformHandlerBase::setSettingsParents()
ActionWebformHandler::buildConfigurationForm in src/Plugin/WebformHandler/ActionWebformHandler.php
Form constructor.
DebugWebformHandler::buildConfigurationForm in src/Plugin/WebformHandler/DebugWebformHandler.php
Form constructor.
EmailWebformHandler::buildConfigurationForm in src/Plugin/WebformHandler/EmailWebformHandler.php
Form constructor.
ExampleWebformHandler::buildConfigurationForm in modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php
Form constructor.
OptionsLimitWebformHandler::buildConfigurationForm in modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
Form constructor.

... See full list

File

src/Plugin/WebformHandlerBase.php, line 733

Class

WebformHandlerBase
Provides a base class for a webform handler.

Namespace

Drupal\webform\Plugin

Code

protected function setSettingsParents(array &$elements) {
  return $this
    ->setSettingsParentsRecursively($elements);
}