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

Breadcrumb

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

function RestResourceConfig::getMethodsForMethodGranularity

Retrieves a list of supported HTTP methods for this resource.

Return value

string[] A list of supported HTTP methods.

1 call to RestResourceConfig::getMethodsForMethodGranularity()
RestResourceConfig::getMethods in core/modules/rest/src/Entity/RestResourceConfig.php
Retrieves a list of supported HTTP methods.

File

core/modules/rest/src/Entity/RestResourceConfig.php, line 132

Class

RestResourceConfig
Defines a RestResourceConfig configuration entity class.

Namespace

Drupal\rest\Entity

Code

protected function getMethodsForMethodGranularity() {
    $methods = array_keys($this->configuration);
    return array_map([
        $this,
        'normalizeRestMethod',
    ], $methods);
}
RSS feed
Powered by Drupal