You are here

public function Resource::getDataProvider in RESTful 7.2

Gets the data provider.

Return value

\Drupal\restful\Plugin\resource\DataProvider\DataProviderInterface The data provider to access the backend storage.

Overrides ResourceInterface::getDataProvider

2 calls to Resource::getDataProvider()
AccessToken__1_0::getOrCreateToken in modules/restful_token_auth/src/Plugin/resource/AccessToken__1_0.php
Create a token for a user, and return its value.
RefreshToken__1_0::refreshToken in modules/restful_token_auth/src/Plugin/resource/RefreshToken__1_0.php
Create a token for a user, and return its value.

File

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

Class

Resource

Namespace

Drupal\restful\Plugin\resource

Code

public function getDataProvider() {
  if (isset($this->dataProvider)) {
    return $this->dataProvider;
  }
  $this->dataProvider = $this
    ->dataProviderFactory();
  return $this->dataProvider;
}