DataProviderNull.php in RESTful 7.2
File
src/Plugin/resource/DataProvider/DataProviderNull.php
View source
<?php
namespace Drupal\restful\Plugin\resource\DataProvider;
class DataProviderNull extends DataProvider implements DataProviderInterface {
public function count() {
return 0;
}
public function create($object) {
return array();
}
public function view($identifier) {
return array();
}
public function viewMultiple(array $identifiers) {
return array();
}
public function update($identifier, $object, $replace = FALSE) {
return array();
}
public function remove($identifier) {
}
public function getIndexIds() {
return array();
}
protected function initDataInterpreter($identifier) {
return NULL;
}
}