Add MDPodcastContributorsSet

This commit is contained in:
Joshua Ramon Enslin 2021-01-27 13:11:29 +01:00
parent dd426509b6
commit c4a95ea511
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 34 additions and 1 deletions

2
l18n

@ -1 +1 @@
Subproject commit 812a27ec0b87560fc37cc3796b822885348f15c4
Subproject commit 2c74a458f34b8d1976fe18361fe10ea535a94d00

View 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");
}
}