You are here

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

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

Gets whether this gateway can pull reports.

Return value

bool Whether this gateway can pull reports.

Overrides SmsGatewayInterface::supportsReportsPull

See also

\Drupal\sms\Annotation\SmsGateway::reports_pull

File

src/Entity/SmsGateway.php, line 327

Class

SmsGateway
Defines storage for an SMS Gateway instance.

Namespace

Drupal\sms\Entity

Code

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