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
Namespace
Drupal\restful\Plugin\resourceCode
public function setDataProvider(DataProviderInterface $data_provider = NULL) {
$this->dataProvider = $data_provider;
}