public static function Schedule::getPeriodType in Backup and Migrate 5.0.x
Same name and namespace in other branches
- 8.4 src/Entity/Schedule.php \Drupal\backup_migrate\Entity\Schedule::getPeriodType()
Get a backup period type given its key.
Parameters
string $type: The period type. MUST be one of the keys in Schedule::getPeriodTypes().
Return value
array The period description.
1 call to Schedule::getPeriodType()
- ScheduleForm::buildEntity in src/
Form/ ScheduleForm.php - Builds an updated entity object based upon the submitted form values.
File
- src/
Entity/ Schedule.php, line 344
Class
- Schedule
- Defines the Schedule entity.
Namespace
Drupal\backup_migrate\EntityCode
public static function getPeriodType($type) {
return Schedule::getPeriodTypes()[$type];
}