Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RestResourceConfig.php

function 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 257

Class

RestResourceConfig
Defines a RestResourceConfig configuration entity class.

Namespace

Drupal\rest\Entity

Code

protected function normalizeRestMethod($method) {
    return strtoupper($method);
}
RSS feed
Powered by Drupal