public function ResourceFieldInterface::access in RESTful 7.2
Check access on property by the defined access callbacks.
Parameters
string $op: The operation that access should be checked for. Can be "view" or "edit". Defaults to "edit".
DataInterpreterInterface $interpreter: The data source representing the entity.
Return value
bool TRUE if the current user has access to set the property, FALSE otherwise. The default implementation assumes that if no callback has explicitly denied access, we grant the user permission.
3 methods override ResourceFieldInterface::access()
- ResourceField::access in src/
Plugin/ resource/ Field/ ResourceField.php - Check access on property by the defined access callbacks.
- ResourceFieldEntity::access in src/
Plugin/ resource/ Field/ ResourceFieldEntity.php - ResourceFieldResource::access in src/
Plugin/ resource/ Field/ ResourceFieldResource.php - Check access on property by the defined access callbacks.
File
- src/
Plugin/ resource/ Field/ ResourceFieldInterface.php, line 152 - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldInterface.
Class
Namespace
Drupal\restful\Plugin\resource\FieldCode
public function access($op, DataInterpreterInterface $interpreter);