Add function for getting unsorted list of positions (left, right, ...)

This commit is contained in:
Joshua Ramon Enslin 2020-08-24 20:14:41 +02:00 committed by Stefan Rohde-Enslin
parent bbaa799fa5
commit d20f9ab80c

View File

@ -15,4 +15,16 @@ class MDObjectPositionsSet {
'left', 'top_left', 'top', 'top_right', 'right', 'bottom_right', 'bottom', 'bottom_left', 'center', 'rear_side', 'edge', 'other',
];
/**
* 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::POSITIONS, "position_set", "position_set");
}
}