You are here

public function FileUploadResource::permissions in Drupal 9

Same name and namespace in other branches
  1. 8 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 212

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 [];
}