public function ForcePasswordChangeServiceInterface::getTextDate in Force Password Change 8
Same name and namespace in other branches
- 2.0.x src/Service/ForcePasswordChangeServiceInterface.php \Drupal\force_password_change\Service\ForcePasswordChangeServiceInterface::getTextDate()
* Converts a number of seconds to a human-friendly time period. * *
Parameters
int $seconds: * The number of seconds to convert. * * @return Drupal\Core\StringTranslation\TranslatableMarkup * The amount of time in years, weeks, days or hours. The returned values is a translated string.
1 method overrides ForcePasswordChangeServiceInterface::getTextDate()
- ForcePasswordChangeService::getTextDate in src/
Service/ ForcePasswordChangeService.php - *
File
- src/
Service/ ForcePasswordChangeServiceInterface.php, line 173
Class
Namespace
Drupal\force_password_change\ServiceCode
public function getTextDate($seconds);