eZ\Publish\Core\REST\Common\FieldTypeProcessor\RelationListProcessor::postProcessValueHash PHP Method

postProcessValueHash() public method

In addition to the list of destinationContentIds, adds a destinationContentHrefs array, with matching content uris.
public postProcessValueHash ( array $outgoingValueHash ) : array
$outgoingValueHash array
return array
    public function postProcessValueHash($outgoingValueHash)
    {
        if (!isset($outgoingValueHash['destinationContentIds']) || !is_array($outgoingValueHash['destinationContentIds']) || !$this->canMapContentHref()) {
            return $outgoingValueHash;
        }
        $outgoingValueHash['destinationContentHrefs'] = array_map(function ($contentId) {
            return $this->mapToContentHref($contentId);
        }, $outgoingValueHash['destinationContentIds']);
        return $outgoingValueHash;
    }
RelationListProcessor