MediaWiki master
SiteLookup.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Site;
22
31interface SiteLookup {
32
40 public function getSite( $globalId );
41
48 public function getSites();
49
50}
51
53class_alias( SiteLookup::class, 'SiteLookup' );
Interface to retrieve Site objects, for implementation by service classes.
getSite( $globalId)
Return the site with provided global ID, or null if there is no such site.
getSites()
Return a list of all sites.