You are here

public function CacheDecoratedDataProvider::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/CacheDecoratedDataProvider.php, line 233
Contains \Drupal\restful\Plugin\resource\DataProvider\CacheDecoratedDataProvider.

Class

CacheDecoratedDataProvider
Class CacheDecoratedDataProvider.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function methodAccess(ResourceFieldInterface $resource_field) {
  $this->subject
    ->methodAccess($resource_field);
}