You are here

public function SmsGateway::getPlugin in SMS Framework 2.1.x

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

Returns the plugin instance.

Return value

\Drupal\sms\Plugin\SmsGatewayPluginInterface The plugin instance for this SMS Gateway.

Overrides SmsGatewayInterface::getPlugin

File

src/Entity/SmsGateway.php, line 193

Class

SmsGateway
Defines storage for an SMS Gateway instance.

Namespace

Drupal\sms\Entity

Code

public function getPlugin() {
  return $this
    ->getPluginCollection()
    ->get($this->plugin);
}