You are here

public function Resource::setDataProvider in RESTful 7.2

Sets the data provider.

Parameters

DataProviderInterface $data_provider: The data provider to set.

Overrides ResourceInterface::setDataProvider

File

src/Plugin/resource/Resource.php, line 209
Contains \Drupal\restful\Plugin\resource\Resource.

Class

Resource

Namespace

Drupal\restful\Plugin\resource

Code

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