function RestResourceConfig::normalizeRestMethod
Same name in other branches
- 9 core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::normalizeRestMethod()
- 8.9.x core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::normalizeRestMethod()
- 11.x core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::normalizeRestMethod()
Normalizes the method.
Parameters
string $method: The request method.
Return value
string The normalized request method.
2 calls to RestResourceConfig::normalizeRestMethod()
- RestResourceConfig::getAuthenticationProvidersForMethodGranularity in core/
modules/ rest/ src/ Entity/ RestResourceConfig.php - Retrieves a list of supported authentication providers.
- RestResourceConfig::getFormatsForMethodGranularity in core/
modules/ rest/ src/ Entity/ RestResourceConfig.php - Retrieves a list of supported response formats.
File
-
core/
modules/ rest/ src/ Entity/ RestResourceConfig.php, line 256
Class
- RestResourceConfig
- Defines a RestResourceConfig configuration entity class.
Namespace
Drupal\rest\EntityCode
protected function normalizeRestMethod($method) {
return strtoupper($method);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.