public function Discovery::resourceManipulationAccess in RESTful 7.2
Helper callback to check authorization for write operations.
Parameters
string $path: The resource path.
Return value
bool TRUE to grant access. FALSE otherwise.
File
- src/
Plugin/ resource/ Discovery.php, line 125 - Contains \Drupal\restful\Plugin\resource\Discovery
Class
- Discovery
- Class Discovery @package Drupal\restful_example\Plugin\Resource
Namespace
Drupal\restful\Plugin\resourceCode
public function resourceManipulationAccess($path) {
return user_access('administer restful resources', $this
->getAccount());
}