wikimedia/mediawiki-extensions-Wikibase

View on GitHub
view/src/SpecialPageLinker.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Wikibase\View;

/**
 * A service returning a URL for a specific special page with optional parameters.
 *
 * @license GPL-2.0-or-later
 * @author Adrian Heine <adrian.heine@wikimedia.de>
 */
interface SpecialPageLinker {

    /**
     * Returns the URL to a special page with optional params
     *
     * @param string $pageName
     * @param string[] $subPageParams Parameters to be added as slash-separated subpages
     *
     * @return string
     */
    public function getLink( $pageName, array $subPageParams = [] );

}