You are here

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

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

Gets whether this gateway can handle reports pushed to the site.

Return value

bool Whether this gateway can handle reports pushed to the site.

Overrides SmsGatewayInterface::supportsReportsPush

See also

\Drupal\sms\Annotation\SmsGateway::reports_push

File

src/Entity/SmsGateway.php, line 336

Class

SmsGateway
Defines storage for an SMS Gateway instance.

Namespace

Drupal\sms\Entity

Code

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