You are here

protected function SmsGateway::getPluginCollection in SMS Framework 2.1.x

Same name and namespace in other branches
  1. 8 src/Entity/SmsGateway.php \Drupal\sms\Entity\SmsGateway::getPluginCollection()
  2. 2.x src/Entity/SmsGateway.php \Drupal\sms\Entity\SmsGateway::getPluginCollection()

Encapsulates the creation of the action's LazyPluginCollection.

Return value

\Drupal\Component\Plugin\LazyPluginCollection The action's plugin collection.

1 call to SmsGateway::getPluginCollection()
SmsGateway::getPluginCollections in src/Entity/SmsGateway.php
Gets the plugin collections used by this object.

File

src/Entity/SmsGateway.php, line 172

Class

SmsGateway
Defines storage for an SMS Gateway instance.

Namespace

Drupal\sms\Entity

Code

protected function getPluginCollection() {
  if (!$this->pluginCollection) {
    $this->pluginCollection = new SmsGatewayPluginCollection(\Drupal::service('plugin.manager.sms_gateway'), $this->plugin, $this->settings);
  }
  return $this->pluginCollection;
}