You are here

protected function SettingsWebformHandler::getSettingsOverride in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformHandler/SettingsWebformHandler.php \Drupal\webform\Plugin\WebformHandler\SettingsWebformHandler::getSettingsOverride()

Get overridden settings.

Return value

array An associative array containing overridden settings.

3 calls to SettingsWebformHandler::getSettingsOverride()
SettingsWebformHandler::displayDebug in src/Plugin/WebformHandler/SettingsWebformHandler.php
Display debugging information about the current action.
SettingsWebformHandler::getSubmissionSettingsOverride in src/Plugin/WebformHandler/SettingsWebformHandler.php
Get webform submission's overridden settings.
SettingsWebformHandler::getSummary in src/Plugin/WebformHandler/SettingsWebformHandler.php
Returns a render array summarizing the configuration of the webform handler.

File

src/Plugin/WebformHandler/SettingsWebformHandler.php, line 353

Class

SettingsWebformHandler
Webform submission settings handler.

Namespace

Drupal\webform\Plugin\WebformHandler

Code

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;
}