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

postProcessValueHash() public method

In addition to the destinationContentId, adds a destinationContentHref entry.
public postProcessValueHash ( array $outgoingValueHash ) : array
$outgoingValueHash array
return array
    public function postProcessValueHash($outgoingValueHash)
    {
        if (!isset($outgoingValueHash['destinationContentId']) || !$this->canMapContentHref()) {
            return $outgoingValueHash;
        }
        $outgoingValueHash['destinationContentHref'] = $this->mapToContentHref($outgoingValueHash['destinationContentId']);
        return $outgoingValueHash;
    }
RelationProcessor