Finds linked entities on an Entity and add the links to ParserOutput.
More...
Finds linked entities on an Entity and add the links to ParserOutput.
- Copyright
- GPL-2.0-or-later
- Author
- Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
-
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
-
Thiemo Kreuz
◆ __construct()
- Parameters
-
EntityReferenceExtractor | $entityReferenceExtractor | |
EntityTitleLookup | $entityTitleLookup | |
◆ addLinksToParserOutput()
Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater::addLinksToParserOutput |
( |
ParserOutput |
$parserOutput, |
|
|
array |
$entityIds |
|
) |
| |
|
private |
◆ updateParserOutput()
Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater::updateParserOutput |
( |
ParserOutput |
$parserOutput, |
|
|
EntityDocument |
$entity |
|
) |
| |
Update extension data, properties or other data in ParserOutput.
These updates are invoked when EntityContent::getParserOutput is called.
- Parameters
-
ParserOutput | $parserOutput | |
EntityDocument | $entity | |
- Returns
- void
Needed and used in EntityParserOutputGenerator, for getEntityInfo, to allow this data to be accessed later in processing.
- See also
- EntityParserOutputGenerator::getEntityInfo
Implements Wikibase\Repo\ParserOutput\EntityParserOutputUpdater.
◆ $entityReferenceExtractor
Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater::$entityReferenceExtractor |
|
private |
◆ $entityTitleLookup
Wikibase\Repo\ParserOutput\ReferencedEntitiesDataUpdater::$entityTitleLookup |
|
private |
The documentation for this class was generated from the following file: