ApiPlatform\Core\Hal\Serializer\ItemNormalizer::getRelationIri PHP Метод

getRelationIri() приватный метод

Gets the IRI of the given relation.
private getRelationIri ( array | string $rel ) : string
$rel array | string
Результат string
    private function getRelationIri($rel) : string
    {
        return $rel['_links']['self']['href'] ?? $rel;
    }