You are here

public function SmsGatewayInterface::getRetentionDuration in SMS Framework 8

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

Get how many seconds to hold messages.

Parameters

int $direction: The direction of the message. See SmsMessageInterface::DIRECTION_* constants.

Return value

int How long messages should persist in seconds. -1 to never expire.

1 method overrides SmsGatewayInterface::getRetentionDuration()
SmsGateway::getRetentionDuration in src/Entity/SmsGateway.php
Get how many seconds to hold messages.

File

src/Entity/SmsGatewayInterface.php, line 103

Class

SmsGatewayInterface
Provides an interface defining a SMS Gateway entity.

Namespace

Drupal\sms\Entity

Code

public function getRetentionDuration($direction);