You are here

public function SmsGateway::getMaxRecipientsOutgoing in SMS Framework 8

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

Get maximum number of recipients per outgoing message.

Return value

int Maximum number of recipients, or -1 for no limit.

Overrides SmsGatewayInterface::getMaxRecipientsOutgoing

File

src/Entity/SmsGateway.php, line 278

Class

SmsGateway
Defines storage for an SMS Gateway instance.

Namespace

Drupal\sms\Entity

Code

public function getMaxRecipientsOutgoing() {
  $definition = $this
    ->getPlugin()
    ->getPluginDefinition();
  return isset($definition['outgoing_message_max_recipients']) ? (int) $definition['outgoing_message_max_recipients'] : 1;
}