function WorkspacesEntityRepository::loadEntityByUuid

Loads an entity by UUID.

Note that some entity types may not support UUIDs.

Parameters

string $entity_type_id: The entity type ID to load from.

string $uuid: The UUID of the entity to load.

Return value

\Drupal\Core\Entity\EntityInterface|null The entity object, or NULL if there is no entity with the given UUID.

Overrides EntityRepositoryInterface::loadEntityByUuid

File

core/modules/workspaces/src/WorkspacesEntityRepository.php, line 21

Class

WorkspacesEntityRepository
Provides workspace-specific mechanisms for retrieving entities.

Namespace

Drupal\workspaces

Code

public function loadEntityByUuid($entity_type_id, $uuid) {
  return $this->inner
    ->loadEntityByUuid($entity_type_id, $uuid);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.