You are here

public function WebformPluginSettingsTrait::setSettings in Webform 8.5

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

File

src/Plugin/WebformPluginSettingsTrait.php, line 21

Class

WebformPluginSettingsTrait
Provides a plugin settings trait.

Namespace

Drupal\webform\Plugin

Code

public function setSettings(array $settings) {
  $configuration = $this
    ->getConfiguration();
  $configuration['settings'] = $settings + $configuration['settings'];
  $this
    ->setConfiguration($configuration);
  return $this;
}