src/Bridge/NelmioApiDoc/Extractor/AnnotationsProvider/ApiPlatformProvider.php
private function getCollectionOperationHydraDoc(string $shortName, string $method, array $hydraEntrypointDoc): array
    {
        if (!isset($hydraEntrypointDoc['hydra:supportedProperty']) || !\is_array($hydraEntrypointDoc['hydra:supportedProperty'])) {
            return [];
        }

        $propertyName = '#Entrypoint/'.lcfirst($shortName);

        foreach ($hydraEntrypointDoc['hydra:supportedProperty'] as $supportedProperty) {
            if (isset($supportedProperty['hydra:property']['@id'])
                && $supportedProperty['hydra:property']['@id'] === $propertyName) {
                return $this->getOperationHydraDoc($method, $supportedProperty['hydra:property']);
            }
        }

        return [];
    }
private function getCollectionOperationHydraDoc(string $shortName, string $method, array $hydraEntrypointDoc): array
    {
        if (!isset($hydraEntrypointDoc['hydra:supportedProperty']) || !\is_array($hydraEntrypointDoc['hydra:supportedProperty'])) {
            return [];
        }

        $propertyName = '#Entrypoint/'.lcfirst($shortName);

        foreach ($hydraEntrypointDoc['hydra:supportedProperty'] as $supportedProperty) {
            if (isset($supportedProperty['hydra:property']['@id'])
                && $supportedProperty['hydra:property']['@id'] === $propertyName) {
                return $this->getOperationHydraDoc($method, $supportedProperty['hydra:property']);
            }
        }

        return [];
    }
private function getCollectionOperationHydraDoc ( string $ shortName , string $ method , array $ hydraEntrypointDoc ) : array { if ( ! isset ( $ hydraEntrypointDoc [ 'hydra:supportedProperty' ] ) || ! \ is_array ( $ hydraEntrypointDoc [ 'hydra:supportedProperty' ] ) ) { return [ ] ; } $ propertyName = '#Entrypoint/' . lcfirst ( $ shortName ) ; foreach ( $ hydraEntrypointDoc [ 'hydra:supportedProperty' ] as $ supportedProperty ) { if ( isset ( $ supportedProperty [ 'hydra:property' ] [ '@id' ] ) && $ supportedProperty [ 'hydra:property' ] [ '@id' ] === $ propertyName ) { return $ this -> getOperationHydraDoc ( $ method , $ supportedProperty [ 'hydra:property' ] ) ; } } return [ ] ; }
Gets the Hydra documentation for the collection operation.
Gets the Hydra documentation for the collection operation .