Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\SnakUrlExpander Interface Reference

SnakUrlExpander expands the value of a Snak to a URL (or URI) or some sort. More...

+ Inheritance diagram for Wikibase\Lib\SnakUrlExpander:

Public Member Functions

 expandUrl (PropertyValueSnak $snak)
 

Detailed Description

SnakUrlExpander expands the value of a Snak to a URL (or URI) or some sort.

The mechanism of expansion and the meaning of the URL are not defined by the interface.

Author
Daniel Kinzler

Member Function Documentation

◆ expandUrl()

Wikibase\Lib\SnakUrlExpander::expandUrl ( PropertyValueSnak $snak)
Parameters
PropertyValueSnak$snak
Returns
string|null A URL or URI derived from the Snak, or null if no such URL could be determined.

Implemented in Wikibase\Lib\PropertyInfoSnakUrlExpander.


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