You are here

public function CacheDecoratedResource::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 ResourceDecoratorBase::getDataProvider

1 call to CacheDecoratedResource::getDataProvider()
CacheDecoratedResource::hasSimpleInvalidation in src/Plugin/resource/Decorators/CacheDecoratedResource.php
Checks if simple invalidation is enabled for this resource.

File

src/Plugin/resource/Decorators/CacheDecoratedResource.php, line 148
Contains \Drupal\restful\Plugin\resource\Decorators\CacheDecoratedResource

Class

CacheDecoratedResource

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

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