getDiscoveryTools(), $this->getPersonalTools(), $this->getSiteTools(), $this->getConfigurationTools(), ]; } /** * Prepares a list of links that have the purpose of discovery in the main navigation menu * @return Group * @throws FatalError * @throws MWException */ public function getSiteTools(): Group { $group = new Group(); $this->definitions->insertSpecialPages( $group ); $this->definitions->insertCommunityPortal( $group ); // Allow other extensions to add or override tools Hooks::run( 'MobileMenu', [ 'sitetools', &$group ] ); return $group; } }