You are here

public function SmsGatewayInterface::setRetentionDuration in SMS Framework 2.x

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

Set how many seconds to hold messages..

Parameters

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

int $retention_duration: How many seconds to hold messages, or use -1 to never expire.

Return value

$this Return this gateway for chaining.

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

File

src/Entity/SmsGatewayInterface.php, line 119

Class

SmsGatewayInterface
Provides an interface defining a SMS Gateway entity.

Namespace

Drupal\sms\Entity

Code

public function setRetentionDuration($direction, $retention_duration);