Merge "Add DEFAULTSORT to search index field data"
[lhc/web/wiklou.git] / includes / content / WikiTextStructure.php
index 9768d36..55c4ad5 100644 (file)
@@ -233,4 +233,12 @@ class WikiTextStructure {
                $this->extractWikitextParts();
                return $this->auxText;
        }
+
+       /**
+        * Get the defaultsort property
+        * @return string|null
+        */
+       public function getDefaultSort() {
+               return $this->parserOutput->getProperty( 'defaultsort' );
+       }
 }