public function SmsGatewayInterface::getRetentionDuration in SMS Framework 2.x
Same name and namespace in other branches
- 8 src/Entity/SmsGatewayInterface.php \Drupal\sms\Entity\SmsGatewayInterface::getRetentionDuration()
- 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 105
Class
- SmsGatewayInterface
- Provides an interface defining a SMS Gateway entity.
Namespace
Drupal\sms\EntityCode
public function getRetentionDuration($direction);