You are here

public function SmsGateway::supportsIncoming in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 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 300

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;
}