Provides an array of permissions suitable for hook_permission().
A resource plugin can define a set of user permissions that are used on the
routes for this resource or for other purposes.
Return value
array
The permission array.
File
- drupal/core/modules/rest/lib/Drupal/rest/Plugin/ResourceInterface.php, line 37
- Contains \Drupal\rest\Plugin\ResourceInterface.
Class
- ResourceInterface
- Specifies the publicly available methods of a resource plugin.
Namespace
Drupal\rest\Plugin
Code
public function permissions();