You are here

public function ResourceInterface::permissions in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/rest/src/Plugin/ResourceInterface.php \Drupal\rest\Plugin\ResourceInterface::permissions()

Provides an array of permissions suitable for .permissions.yml files.

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 core/modules/rest/src/Plugin/ResourceBase.php
Implements ResourceInterface::permissions().

File

core/modules/rest/src/Plugin/ResourceInterface.php, line 44
Contains \Drupal\rest\Plugin\ResourceInterface.

Class

ResourceInterface
Specifies the publicly available methods of a resource plugin.

Namespace

Drupal\rest\Plugin

Code

public function permissions();