You are here

public function ResourceDecoratorBase::setDataProvider in RESTful 7.2

Sets the data provider.

Parameters

DataProviderInterface $data_provider: The data provider to set.

Overrides ResourceInterface::setDataProvider

1 method overrides ResourceDecoratorBase::setDataProvider()
CacheDecoratedResource::setDataProvider in src/Plugin/resource/Decorators/CacheDecoratedResource.php
Sets the data provider.

File

src/Plugin/resource/Decorators/ResourceDecoratorBase.php, line 135
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

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