public function SmsGatewayInterface::setRetentionDuration in SMS Framework 2.1.x
Same name and namespace in other branches
- 8 src/Entity/SmsGatewayInterface.php \Drupal\sms\Entity\SmsGatewayInterface::setRetentionDuration()
- 2.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\EntityCode
public function setRetentionDuration($direction, $retention_duration);