DataProviderDecorator.php in RESTful 7.2
File
src/Plugin/resource/DataProvider/DataProviderDecorator.php
View source
<?php
namespace Drupal\restful\Plugin\resource\DataProvider;
use Drupal\restful\Http\RequestInterface;
use Drupal\restful\Plugin\resource\Field\ResourceFieldInterface;
abstract class DataProviderDecorator implements DataProviderInterface {
protected $decorated;
public function __construct(DataProviderInterface $decorated) {
$this->decorated = $decorated;
}
public function getRange() {
return $this->decorated
->getRange();
}
public function setRange($range) {
$this->decorated
->setRange($range);
}
public function getAccount() {
return $this->decorated
->getAccount();
}
public function setAccount($account) {
$this->decorated
->setAccount($account);
}
public function getRequest() {
return $this->decorated
->getRequest();
}
public function setRequest(RequestInterface $request) {
$this->decorated
->setRequest($request);
}
public function getLangCode() {
return $this->decorated
->getLangCode();
}
public function setLangCode($langcode) {
$this->decorated
->setLangCode($langcode);
}
public function getOptions() {
return $this->decorated
->getOptions();
}
public function addOptions(array $options) {
$this->decorated
->addOptions($options);
}
public function getCacheFragments($identifier) {
$this->decorated
->getCacheFragments($identifier);
}
public function canonicalPath($path) {
return $this->decorated
->canonicalPath($path);
}
public function methodAccess(ResourceFieldInterface $resource_field) {
return $this->decorated
->methodAccess($resource_field);
}
public function setOptions(array $options) {
$this->decorated
->setOptions($options);
}
public function getIndexIds() {
return $this->decorated
->getIndexIds();
}
public function index() {
return $this->decorated
->index();
}
public function count() {
return $this->decorated
->count();
}
public function create($object) {
return $this->decorated
->create($object);
}
public function view($identifier) {
return $this->decorated
->view($identifier);
}
public function viewMultiple(array $identifiers) {
return $this->decorated
->viewMultiple($identifiers);
}
public function update($identifier, $object, $replace = FALSE) {
return $this->decorated
->update($identifier, $object, $replace);
}
public function remove($identifier) {
$this->decorated
->remove($identifier);
}
public function discover($path = NULL) {
return $this->decorated
->discover($path);
}
public static function isNestedField($field_name) {
return DataProvider::isNestedField($field_name);
}
public static function processFilterInput($filter, $public_field) {
return DataProvider::processFilterInput($filter, $public_field);
}
public function setResourcePath($resource_path) {
$this->decorated
->setResourcePath($resource_path);
}
public function getResourcePath() {
return $this->decorated
->getResourcePath();
}
public function getMetadata() {
return $this->decorated
->getMetadata();
}
}