You are here

public function CacheDecoratedResource::setDataProvider in RESTful 7.2

Sets the data provider.

Parameters

DataProviderInterface $data_provider: The data provider to set.

Overrides ResourceDecoratorBase::setDataProvider

File

src/Plugin/resource/Decorators/CacheDecoratedResource.php, line 159
Contains \Drupal\restful\Plugin\resource\Decorators\CacheDecoratedResource

Class

CacheDecoratedResource

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

public function setDataProvider(DataProviderInterface $data_provider = NULL) {
  $this->dataProvider = $data_provider;
}