function ResourceInterface::availableMethods
Same name in other branches
- 9 core/modules/rest/src/Plugin/ResourceInterface.php \Drupal\rest\Plugin\ResourceInterface::availableMethods()
- 8.9.x core/modules/rest/src/Plugin/ResourceInterface.php \Drupal\rest\Plugin\ResourceInterface::availableMethods()
- 11.x core/modules/rest/src/Plugin/ResourceInterface.php \Drupal\rest\Plugin\ResourceInterface::availableMethods()
Returns the available HTTP request methods on this plugin.
Return value
array The list of supported methods. Example: array('GET', 'POST', 'PATCH').
1 method overrides ResourceInterface::availableMethods()
- ResourceBase::availableMethods in core/
modules/ rest/ src/ Plugin/ ResourceBase.php
File
-
core/
modules/ rest/ src/ Plugin/ ResourceInterface.php, line 51
Class
- ResourceInterface
- Specifies the publicly available methods of a resource plugin.
Namespace
Drupal\rest\PluginCode
public function availableMethods();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.