MediaWiki master
StringPrefixSearch.php
Go to the documentation of this file.
1<?php
24
31
36 protected function titles( array $titles ) {
37 return array_map( static function ( Title $t ) {
38 return $t->getPrefixedText();
39 }, $titles );
40 }
41
46 protected function strings( array $strings ) {
47 return $strings;
48 }
49}
Represents a title within MediaWiki.
Definition Title.php:79
Handles searching prefixes of titles and finding any page names that match.
Performs prefix search, returning strings.
strings(array $strings)