Page MenuHomePhabricator
Paste P9898

(An Untitled Masterwork)
ActivePublic

Authored by Addshore on Dec 17 2019, 9:37 AM.
Tags
None
Referenced Files
F31478757: raw.txt
Dec 17 2019, 9:37 AM
Subscribers
None
/**
* @param EntityId $entityId
*
* @return Term|null Null if no label was found or the entity does not exist
*/
protected function lookupEntityLabel( EntityId $entityId ) {
wfDebugLog('AdHocDebug', __METHOD__ . ' lookup class ' . get_class($this->labelLookup) . ' for entity ' . $entityId->getSerialization());
try {
return $this->labelLookup->getLabel( $entityId );
} catch ( LabelDescriptionLookupException $e ) {
wfDebugLog('AdHocDebug', __METHOD__ . ' was exception: ' . $e->getMessage());
return null;
}
}