RestResourceConfig::getMethodsForMethodGranularity

protected RestResourceConfig::getMethodsForMethodGranularity()

Retrieves a list of supported HTTP methods for this resource.

Return value

string[] A list of supported HTTP methods.

File

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

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);
}
doc_Drupal
2016-10-29 09:38:20
Comments
Leave a Comment

Please login to continue.