public function OpenApiGeneratorInterface::getSecurity in OpenAPI 8
Same name and namespace in other branches
- 8.2 src/Plugin/openapi/OpenApiGeneratorInterface.php \Drupal\openapi\Plugin\openapi\OpenApiGeneratorInterface::getSecurity()
Returns a list of valid security types for the api.
Values of returned array will be empty, except for OAuth2 definitions, for which the required scopes should be returned.
Return value
array An array where keys correspond to a security scheme.
1 method overrides OpenApiGeneratorInterface::getSecurity()
- OpenApiGeneratorBase::getSecurity in src/
Plugin/ openapi/ OpenApiGeneratorBase.php - Returns a list of valid security types for the api.
File
- src/
Plugin/ openapi/ OpenApiGeneratorInterface.php, line 63
Class
- OpenApiGeneratorInterface
- Defines OpenApiGeneratorInterface for OpenApi Generator Plugins.
Namespace
Drupal\openapi\Plugin\openapiCode
public function getSecurity();