You are here

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

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

Get whether this gateway supports credit balance queries.

Return value

bool Whether this gateway supports credit balance queries.

Overrides SmsGatewayInterface::supportsCreditBalanceQuery

See also

\Drupal\sms\Annotation\SmsGateway::credit_balance_available

File

src/Entity/SmsGateway.php, line 345

Class

SmsGateway
Defines storage for an SMS Gateway instance.

Namespace

Drupal\sms\Entity

Code

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