You are here

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

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

Whether to automatically create a route for receiving incoming messages.

Return value

bool Whether to automatically create a route for receiving incoming messages.

Overrides SmsGatewayInterface::autoCreateIncomingRoute

File

src/Entity/SmsGateway.php, line 309

Class

SmsGateway
Defines storage for an SMS Gateway instance.

Namespace

Drupal\sms\Entity

Code

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