/** * @since 2.4 * * @param string $chunk * * @return Description|null */ public function getDescriptionForWikiPageValueChunk($chunk) { // Only create a simple WpgValue to initiate the query description target // operation. If the chunk contains something like "≤Issue/1220" then the // WpgValue would return with an error as it cannot parse ≤ as/ legal // character, the chunk itself is processed by // DataValue::getQueryDescription hence no need to use it as input for // the factory instance $dataValue = $this->dataValueFactory->newTypeIDValue('_wpg', 'QP_WPG_TITLE'); $description = null; $description = $dataValue->getQueryDescription($chunk); $this->addError($dataValue->getErrors()); return $description; }