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

        foreach ($hydraDoc['hydra:supportedOperation'] as $supportedOperation) {
            if ($supportedOperation['hydra:method'] === $method) {
                return $supportedOperation;
            }
        }

        return [];
    }
private function getOperationHydraDoc(string $method, array $hydraDoc): array
    {
        if (!isset($hydraDoc['hydra:supportedOperation']) || !\is_array($hydraDoc['hydra:supportedOperation'])) {
            return [];
        }

        foreach ($hydraDoc['hydra:supportedOperation'] as $supportedOperation) {
            if ($supportedOperation['hydra:method'] === $method) {
                return $supportedOperation;
            }
        }

        return [];
    }
private function getOperationHydraDoc ( string $ method , array $ hydraDoc ) : array { if ( ! isset ( $ hydraDoc [ 'hydra:supportedOperation' ] ) || ! \ is_array ( $ hydraDoc [ 'hydra:supportedOperation' ] ) ) { return [ ] ; } foreach ( $ hydraDoc [ 'hydra:supportedOperation' ] as $ supportedOperation ) { if ( $ supportedOperation [ 'hydra:method' ] === $ method ) { return $ supportedOperation ; } } return [ ] ; }
Gets the Hydra documentation of a given operation.
Gets the Hydra documentation of a given operation .