public static function Schedule::periodToSeconds 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::periodToSeconds()
Convert a period array into seconds.
Parameters
array $period A period array:
Return value
mixed
Throws
\BackupMigrate\Core\Exception\BackupMigrateException
1 call to Schedule::periodToSeconds()
- ScheduleForm::buildEntity in src/
Form/ ScheduleForm.php - Builds an updated entity object based upon the submitted form values.
File
- src/
Entity/ Schedule.php, line 196
Class
- Schedule
- Defines the Schedule entity.
Namespace
Drupal\backup_migrate\EntityCode
public static function periodToSeconds($period) {
return $period['number'] * $period['type']['seconds'];
}