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

Formats the StringValue from a "url" snak as an HTML link pointing to that URL. More...

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

Public Member Functions

 __construct (FormatterOptions $options=null)
 
 format ( $value)
 

Protected Attributes

 $attributes
 

Detailed Description

Formats the StringValue from a "url" snak as an HTML link pointing to that URL.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\HtmlUrlFormatter::__construct ( FormatterOptions $options = null)
Parameters
FormatterOptions | null$options

Member Function Documentation

◆ format()

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

Formats the given URL as an HTML link

Parameters
StringValue$valueThe URL to turn into a link
Exceptions
InvalidArgumentException
Returns
string HTML

Member Data Documentation

◆ $attributes

Wikibase\Lib\Formatters\HtmlUrlFormatter::$attributes
protected

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