public function Schedule::getPeriodFormatted in Backup and Migrate 8.4
Same name and namespace in other branches
- 5.0.x src/Entity/Schedule.php \Drupal\backup_migrate\Entity\Schedule::getPeriodFormatted()
Return the schedule frequency formatted for display in human language.
Return value
\Drupal\Core\StringTranslation\PluralTranslatableMarkup
Throws
\BackupMigrate\Core\Exception\BackupMigrateException
File
- src/
Entity/ Schedule.php, line 163
Class
- Schedule
- Defines the Schedule entity.
Namespace
Drupal\backup_migrate\EntityCode
public function getPeriodFormatted() {
return Schedule::formatPeriod(Schedule::secondsToPeriod($this
->get('period')));
}