ContentEntityNullStorage.php in Zircon Profile 8
File
core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php
View source
<?php
namespace Drupal\Core\Entity;
use Drupal\Core\Field\FieldDefinitionInterface;
class ContentEntityNullStorage extends ContentEntityStorageBase {
public function loadMultiple(array $ids = NULL) {
return array();
}
protected function doLoadMultiple(array $ids = NULL) {
}
public function load($id) {
return NULL;
}
public function loadRevision($revision_id) {
return NULL;
}
public function deleteRevision($revision_id) {
}
public function loadByProperties(array $values = array()) {
return array();
}
public function delete(array $entities) {
}
protected function doDelete($entities) {
}
public function save(EntityInterface $entity) {
}
protected function getQueryServiceName() {
return 'entity.query.null';
}
protected function doLoadRevisionFieldItems($revision_id) {
}
protected function doSaveFieldItems(ContentEntityInterface $entity, array $names = []) {
}
protected function doDeleteFieldItems($entities) {
}
protected function doDeleteRevisionFieldItems(ContentEntityInterface $revision) {
}
protected function readFieldItemsToPurge(FieldDefinitionInterface $field_definition, $batch_size) {
return array();
}
protected function purgeFieldItems(ContentEntityInterface $entity, FieldDefinitionInterface $field_definition) {
}
protected function doSave($id, EntityInterface $entity) {
}
protected function has($id, EntityInterface $entity) {
}
public function countFieldData($storage_definition, $as_bool = FALSE) {
return $as_bool ? FALSE : 0;
}
public function hasData() {
return FALSE;
}
}