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;
    }