You are here

public function SmsGatewayPluginCollection::__construct in SMS Framework 8

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

Constructs a new SmsGatewayPluginCollection object.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $manager: The manager to be used for instantiating plugins.

string $instance_id: The ID of the plugin instance.

array $configuration: An array of configuration.

Overrides DefaultSingleLazyPluginCollection::__construct

File

src/Plugin/SmsGatewayPluginCollection.php, line 23

Class

SmsGatewayPluginCollection
Provides a container for lazily loading SMS Gateway plugins.

Namespace

Drupal\sms\Plugin

Code

public function __construct(PluginManagerInterface $manager, $instance_id, array $configuration) {
  $this->manager = $manager;
  if ($instance_id !== NULL) {
    $this
      ->addInstanceId($instance_id, $configuration);
  }
}