You are here

public function DataProviderInterface::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.

3 methods override DataProviderInterface::methodAccess()
CacheDecoratedDataProvider::methodAccess in src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php
Checks if the provided field can be used with the current method.
DataProvider::methodAccess in src/Plugin/resource/DataProvider/DataProvider.php
Checks if the provided field can be used with the current method.
DataProviderDecorator::methodAccess in src/Plugin/resource/DataProvider/DataProviderDecorator.php
Checks if the provided field can be used with the current method.

File

src/Plugin/resource/DataProvider/DataProviderInterface.php, line 161
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderInterface.

Class

DataProviderInterface

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function methodAccess(ResourceFieldInterface $resource_field);