Formats the StringValue from a "url" snak as an HTML link pointing to that URL.
More...
Formats the StringValue from a "url" snak as an HTML link pointing to that URL.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Lib\Formatters\HtmlUrlFormatter::__construct |
( |
FormatterOptions | $options = null | ) |
|
- Parameters
-
FormatterOptions | null | $options | |
◆ format()
Wikibase\Lib\Formatters\HtmlUrlFormatter::format |
( |
| $value | ) |
|
- See also
- ValueFormatter::format
Formats the given URL as an HTML link
- Parameters
-
StringValue | $value | The URL to turn into a link |
- Exceptions
-
- Returns
- string HTML
◆ $attributes
Wikibase\Lib\Formatters\HtmlUrlFormatter::$attributes |
|
protected |
The documentation for this class was generated from the following file: