Add MDTitleTypesSet for controlling alternative title types
This commit is contained in:
parent
45e8d4e529
commit
57a2163c1a
34
src/MDTitleTypesSet.php
Normal file
34
src/MDTitleTypesSet.php
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
<?PHP
|
||||||
|
/**
|
||||||
|
* Contains a class for controlling the list of available marking types.
|
||||||
|
*
|
||||||
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
||||||
|
*/
|
||||||
|
declare(strict_types = 1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class containing available marking types.
|
||||||
|
*/
|
||||||
|
class MDTitleTypesSet extends MDValueSet {
|
||||||
|
|
||||||
|
const TITLE_TYPES = [
|
||||||
|
"",
|
||||||
|
"Science",
|
||||||
|
"Everyday speech",
|
||||||
|
"Colloquial speech",
|
||||||
|
"Dialect",
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets a sorted 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::TITLE_TYPES, "title_types_set", "title_types_set");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user