public function DataProviderDecorator::methodAccess in RESTful 7.2
Checks if the provided field can be used with the current method.
Parameters
ResourceFieldInterface $resource_field: The field.
Return value
bool TRUE if acces is granted. FALSE otherwise.
Overrides DataProviderInterface::methodAccess
File
- src/
Plugin/ resource/ DataProvider/ DataProviderDecorator.php, line 119 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderDecorator.
Class
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
public function methodAccess(ResourceFieldInterface $resource_field) {
return $this->decorated
->methodAccess($resource_field);
}