function EntityResource::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/ rest/ src/ Plugin/ rest/ resource/ EntityResource.php, line 362
Class
- EntityResource
- Represents entities as resources.
Namespace
Drupal\rest\Plugin\rest\resourceCode
public function permissions() {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.