From d20f9ab80c2ec10d8ee538f044cf322405f278da Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Mon, 24 Aug 2020 20:14:41 +0200 Subject: [PATCH] Add function for getting unsorted list of positions (left, right, ...) --- src/MDObjectPositionsSet.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/MDObjectPositionsSet.php b/src/MDObjectPositionsSet.php index ba39fe2..03c0f34 100644 --- a/src/MDObjectPositionsSet.php +++ b/src/MDObjectPositionsSet.php @@ -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 + */ + public static function getSortedList(MDTlLoader $tlLoader):array { + return parent::getTlSortedList($tlLoader, self::POSITIONS, "position_set", "position_set"); + + } + }