You are here

public function SmsGatewayPluginBase::parseDeliveryReports in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Plugin/SmsGatewayPluginBase.php \Drupal\sms\Plugin\SmsGatewayPluginBase::parseDeliveryReports()
  2. 2.1.x src/Plugin/SmsGatewayPluginBase.php \Drupal\sms\Plugin\SmsGatewayPluginBase::parseDeliveryReports()

Parses incoming delivery reports and returns the created delivery reports.

The request contains delivery reports pushed to the site in a format supplied by the gateway API. This method transforms the raw request into delivery report objects usable by SMS Framework.

Parameters

\Symfony\Component\HttpFoundation\Request $request: Request object containing the unprocessed delivery reports.

\Symfony\Component\HttpFoundation\Response $response: HTTP response to return to the server pushing the raw delivery reports.

Return value

\Drupal\sms\Message\SmsDeliveryReportInterface[] An array of delivery reports created from the request.

Overrides SmsGatewayPluginInterface::parseDeliveryReports

1 method overrides SmsGatewayPluginBase::parseDeliveryReports()
Memory::parseDeliveryReports in tests/modules/sms_test_gateway/src/Plugin/SmsGateway/Memory.php
Parses incoming delivery reports and returns the created delivery reports.

File

src/Plugin/SmsGatewayPluginBase.php, line 88

Class

SmsGatewayPluginBase
Base class for sms gateway plugins.

Namespace

Drupal\sms\Plugin

Code

public function parseDeliveryReports(Request $request, Response $response) {
  return [];
}