Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Formatters\WikiLinkHtmlFormatter Class Reference

Formats the StringValue from a snak as an HTML link. More...

+ Inheritance diagram for Wikibase\Lib\Formatters\WikiLinkHtmlFormatter:
+ Collaboration diagram for Wikibase\Lib\Formatters\WikiLinkHtmlFormatter:

Public Member Functions

 __construct ( $namespace)
 
 format ( $value)
 

Private Attributes

 $namespace
 

Detailed Description

Formats the StringValue from a snak as an HTML link.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\WikiLinkHtmlFormatter::__construct (   $namespace)
Parameters
int$namespacenamespace to be used to format the link

Member Function Documentation

◆ format()

Wikibase\Lib\Formatters\WikiLinkHtmlFormatter::format (   $value)
See also
ValueFormatter::format

Formats the given page title as an HTML link

Parameters
StringValue$valueThe page title to be turned into a link
Exceptions
InvalidArgumentException
Returns
string HTML

Member Data Documentation

◆ $namespace

Wikibase\Lib\Formatters\WikiLinkHtmlFormatter::$namespace
private

The documentation for this class was generated from the following file: