function WorkspacesEntityRepository::loadEntityByConfigTarget
Same name and namespace in other branches
- 11.x core/modules/workspaces/src/WorkspacesEntityRepository.php \Drupal\workspaces\WorkspacesEntityRepository::loadEntityByConfigTarget()
Loads an entity by the config target identifier.
Parameters
string $entity_type_id: The entity type ID to load from.
string $target: The configuration target to load, as returned from \Drupal\Core\Entity\EntityInterface::getConfigTarget().
Return value
\Drupal\Core\Entity\EntityInterface|null The entity object, or NULL if there is no entity with the given config target identifier.
Overrides EntityRepositoryInterface::loadEntityByConfigTarget
File
-
core/
modules/ workspaces/ src/ WorkspacesEntityRepository.php, line 28
Class
- WorkspacesEntityRepository
- Provides workspace-specific mechanisms for retrieving entities.
Namespace
Drupal\workspacesCode
public function loadEntityByConfigTarget($entity_type_id, $target) {
return $this->inner
->loadEntityByConfigTarget($entity_type_id, $target);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.