ContentEntityNullStorage::load

public ContentEntityNullStorage::load($id)

Loads one entity.

Parameters

mixed $id: The ID of the entity to load.

Return value

\Drupal\Core\Entity\EntityInterface|null An entity object. NULL if no matching entity is found.

Overrides EntityStorageBase::load

File

core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php, line 30

Class

ContentEntityNullStorage
Defines a null entity storage.

Namespace

Drupal\Core\Entity

Code

1
2
3
public function load($id) {
  return NULL;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.