function ResourceBase::requestMethods
Same name in other branches
- 9 core/modules/rest/src/Plugin/ResourceBase.php \Drupal\rest\Plugin\ResourceBase::requestMethods()
- 8.9.x core/modules/rest/src/Plugin/ResourceBase.php \Drupal\rest\Plugin\ResourceBase::requestMethods()
- 11.x core/modules/rest/src/Plugin/ResourceBase.php \Drupal\rest\Plugin\ResourceBase::requestMethods()
Provides predefined HTTP request methods.
Plugins can override this method to provide additional custom request methods.
Return value
array The list of allowed HTTP request method strings.
1 call to ResourceBase::requestMethods()
- ResourceBase::availableMethods in core/
modules/ rest/ src/ Plugin/ ResourceBase.php
File
-
core/
modules/ rest/ src/ Plugin/ ResourceBase.php, line 131
Class
- ResourceBase
- Common base class for resource plugins.
Namespace
Drupal\rest\PluginCode
protected function requestMethods() {
return [
'HEAD',
'GET',
'POST',
'PUT',
'DELETE',
'TRACE',
'OPTIONS',
'CONNECT',
'PATCH',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.