ApiPlatform\Core\Hal\Serializer\ItemNormalizer::getRelationIri PHP Method

getRelationIri() private method

Gets the IRI of the given relation.
private getRelationIri ( array | string $rel ) : string
$rel array | string
return string
    private function getRelationIri($rel) : string
    {
        return $rel['_links']['self']['href'] ?? $rel;
    }