You are here

protected static function DataProviderEntity::checkPropertyAccess in RESTful 7.2

Checks if the data provider user has access to the property.

Parameters

\Drupal\restful\Plugin\resource\Field\ResourceFieldInterface $resource_field: The field to check access on.

string $op: The operation to be performed on the field.

\Drupal\restful\Plugin\resource\DataInterpreter\DataInterpreterInterface $interpreter: The data interpreter.

Return value

bool TRUE if the user has access to the property.

1 call to DataProviderEntity::checkPropertyAccess()
DataProviderTaxonomyTerm::checkPropertyAccess in tests/modules/restful_test/src/Plugin/resource/taxonomy_term/v1/DataProviderTaxonomyTerm.php
Checks if the data provider user has access to the property.
1 method overrides DataProviderEntity::checkPropertyAccess()
DataProviderTaxonomyTerm::checkPropertyAccess in tests/modules/restful_test/src/Plugin/resource/taxonomy_term/v1/DataProviderTaxonomyTerm.php
Checks if the data provider user has access to the property.

File

src/Plugin/resource/DataProvider/DataProviderEntity.php, line 1089
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntity.

Class

DataProviderEntity
Class DataProviderEntity.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

protected static function checkPropertyAccess(ResourceFieldInterface $resource_field, $op, DataInterpreterInterface $interpreter) {
  return $resource_field
    ->access($op, $interpreter);
}