You are here

public function SmsGatewayPluginBase::setConfiguration in SMS Framework 2.1.x

Same name and namespace in other branches
  1. 8 src/Plugin/SmsGatewayPluginBase.php \Drupal\sms\Plugin\SmsGatewayPluginBase::setConfiguration()
  2. 2.x src/Plugin/SmsGatewayPluginBase.php \Drupal\sms\Plugin\SmsGatewayPluginBase::setConfiguration()

Sets the configuration for this plugin instance.

Parameters

array $configuration: An associative array containing the plugin's configuration.

Overrides ConfigurableInterface::setConfiguration

1 call to SmsGatewayPluginBase::setConfiguration()
SmsGatewayPluginBase::__construct in src/Plugin/SmsGatewayPluginBase.php
Constructs a new SmsGateway plugin.

File

src/Plugin/SmsGatewayPluginBase.php, line 43

Class

SmsGatewayPluginBase
Base class for sms gateway plugins.

Namespace

Drupal\sms\Plugin

Code

public function setConfiguration(array $configuration) {
  $this->configuration = NestedArray::mergeDeep($this
    ->defaultConfiguration(), $configuration);
}