You are here

protected function DataProviderDbQuery::initDataInterpreter in RESTful 7.2

Get the data interpreter.

Parameters

mixed $identifier: The ID of thing being viewed.

Return value

\Drupal\restful\Plugin\resource\DataInterpreter\DataInterpreterInterface The data interpreter.

Overrides DataProvider::initDataInterpreter

File

src/Plugin/resource/DataProvider/DataProviderDbQuery.php, line 508
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderDbQuery.

Class

DataProviderDbQuery

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

protected function initDataInterpreter($identifier) {
  return new DataInterpreterArray($this
    ->getAccount(), new ArrayWrapper((array) $identifier));
}