You are here

public function SmsGatewayPluginBase::setConfiguration in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Plugin/SmsGatewayPluginBase.php \Drupal\sms\Plugin\SmsGatewayPluginBase::setConfiguration()
  2. 2.1.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 ConfigurablePluginInterface::setConfiguration

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

File

src/Plugin/SmsGatewayPluginBase.php, line 41

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