Add MDPodcastContributorsSet
This commit is contained in:
2
l18n
2
l18n
Submodule l18n updated: 812a27ec0b...2c74a458f3
33
src/MDPodcastContributorsSet.php
Normal file
33
src/MDPodcastContributorsSet.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?PHP
|
||||
/**
|
||||
* Contains a class for controlling the list of available contributor types
|
||||
* to podcasts.
|
||||
*
|
||||
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
/**
|
||||
* Class containing available place types.
|
||||
*/
|
||||
final class MDPodcastContributorsSet extends MDValueSet {
|
||||
|
||||
const AVAILABLE_ROLES = [
|
||||
'onair',
|
||||
'organization',
|
||||
'recording',
|
||||
'technical_support',
|
||||
];
|
||||
|
||||
/**
|
||||
* Gets a list of the entries in a translated version.
|
||||
*
|
||||
* @param MDTlLoader $tlLoader Translation loader.
|
||||
*
|
||||
* @return array<string>
|
||||
*/
|
||||
public static function getSortedList(MDTlLoader $tlLoader):array {
|
||||
return parent::getTlSortedList($tlLoader, self::AVAILABLE_ROLES, "podcast_contributor_roles", "podcast_contributor_roles");
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user