MediaWiki master
SiteLookup.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Site;
8
17interface SiteLookup {
18
26 public function getSite( $globalId );
27
34 public function getSites();
35
36}
37
39class_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.