You are here

public function ResourceInterface::setDataProvider in RESTful 7.2

Sets the data provider.

Parameters

DataProviderInterface $data_provider: The data provider to set.

2 methods override ResourceInterface::setDataProvider()
Resource::setDataProvider in src/Plugin/resource/Resource.php
Sets the data provider.
ResourceDecoratorBase::setDataProvider in src/Plugin/resource/Decorators/ResourceDecoratorBase.php
Sets the data provider.

File

src/Plugin/resource/ResourceInterface.php, line 346
Contains \Drupal\restful\Plugin\resource\ResourceInterface.

Class

ResourceInterface
Interface ResourceInterface.

Namespace

Drupal\restful\Plugin\resource

Code

public function setDataProvider(DataProviderInterface $data_provider = NULL);