Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 20 |
CRAP | |
0.00% |
0 / 28 |
| ContentEntityNullStorage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 20 |
462 | |
0.00% |
0 / 28 |
| loadMultiple | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| doLoadMultiple | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| load | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| loadRevision | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| deleteRevision | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| loadByProperties | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| delete | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| doDelete | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| save | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| getQueryServiceName | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| doLoadRevisionFieldItems | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| doSaveFieldItems | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| doDeleteFieldItems | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| doDeleteRevisionFieldItems | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| readFieldItemsToPurge | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| purgeFieldItems | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| doSave | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| has | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| countFieldData | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 2 |
|||
| hasData | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\Core\Entity\ContentEntityNullStorage. | |
| */ | |
| namespace Drupal\Core\Entity; | |
| use Drupal\Core\Field\FieldDefinitionInterface; | |
| /** | |
| * Defines a null entity storage. | |
| * | |
| * Used for content entity types that have no storage. | |
| */ | |
| class ContentEntityNullStorage extends ContentEntityStorageBase { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function loadMultiple(array $ids = NULL) { | |
| return array(); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function doLoadMultiple(array $ids = NULL) { | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function load($id) { | |
| return NULL; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function loadRevision($revision_id) { | |
| return NULL; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function deleteRevision($revision_id) { | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function loadByProperties(array $values = array()) { | |
| return array(); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function delete(array $entities) { | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function doDelete($entities) { | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function save(EntityInterface $entity) { | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function getQueryServiceName() { | |
| return 'entity.query.null'; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function doLoadRevisionFieldItems($revision_id) { | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function doSaveFieldItems(ContentEntityInterface $entity, array $names = []) { | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function doDeleteFieldItems($entities) { | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function doDeleteRevisionFieldItems(ContentEntityInterface $revision) { | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function readFieldItemsToPurge(FieldDefinitionInterface $field_definition, $batch_size) { | |
| return array(); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function purgeFieldItems(ContentEntityInterface $entity, FieldDefinitionInterface $field_definition) { | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function doSave($id, EntityInterface $entity) { | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function has($id, EntityInterface $entity) { | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function countFieldData($storage_definition, $as_bool = FALSE) { | |
| return $as_bool ? FALSE : 0; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function hasData() { | |
| return FALSE; | |
| } | |
| } |