You are here

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

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

Constructs a new SmsGateway plugin.

Parameters

array $configuration: The configuration to use and build the sms gateway.

string $plugin_id: The gateway id.

mixed $plugin_definition: The gateway plugin definition.

Overrides PluginBase::__construct

File

src/Plugin/SmsGatewayPluginBase.php, line 28

Class

SmsGatewayPluginBase
Base class for sms gateway plugins.

Namespace

Drupal\sms\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this
    ->setConfiguration($configuration);
}