public function ResourceInterface::permissions

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.

1 method overrides ResourceInterface::permissions()
ResourceBase::permissions in drupal/core/modules/rest/lib/Drupal/rest/Plugin/ResourceBase.php
Implements ResourceInterface::permissions().

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();