public static function Schedule::getPeriodType 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::getPeriodType()
Get a backup period type given it's key.
Parameters
string $type:
Return value
array
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 234
Class
- Schedule
- Defines the Schedule entity.
Namespace
Drupal\backup_migrate\EntityCode
public static function getPeriodType($type) {
return Schedule::getPeriodTypes()[$type];
}