You are here

public function SmsGateway::supportsIncoming in SMS Framework 8

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

Whether the gateway supports receiving messages.

Return value

bool Whether the gateway supports receiving messages.

Overrides SmsGatewayInterface::supportsIncoming

File

src/Entity/SmsGateway.php, line 287

Class

SmsGateway
Defines storage for an SMS Gateway instance.

Namespace

Drupal\sms\Entity

Code

public function supportsIncoming() {
  $definition = $this
    ->getPlugin()
    ->getPluginDefinition();
  return isset($definition['incoming']) ? (bool) $definition['incoming'] : FALSE;
}