You are here

public function FileUploadResource::permissions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/file/src/Plugin/rest/resource/FileUploadResource.php \Drupal\file\Plugin\rest\resource\FileUploadResource::permissions()

Implements ResourceInterface::permissions().

Every plugin operation method gets its own user permission. Example: "restful delete entity:node" with the title "Access DELETE on Node resource".

Overrides ResourceBase::permissions

File

core/modules/file/src/Plugin/rest/resource/FileUploadResource.php, line 195

Class

FileUploadResource
File upload resource.

Namespace

Drupal\file\Plugin\rest\resource

Code

public function permissions() {

  // Access to this resource depends on field-level access so no explicit
  // permissions are required.
  // @see \Drupal\file\Plugin\rest\resource\FileUploadResource::validateAndLoadFieldDefinition()
  // @see \Drupal\rest\Plugin\rest\resource\EntityResource::permissions()
  return [];
}