function WorkspacesEntityRepository::getActiveMultiple

Overrides EntityRepositoryInterface::getActiveMultiple

File

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

Class

WorkspacesEntityRepository
Provides workspace-specific mechanisms for retrieving entities.

Namespace

Drupal\workspaces

Code

public function getActiveMultiple($entity_type_id, array $entity_ids, ?array $contexts = NULL) {
    // When there's no active workspace, the active entity variant is the
    // canonical one.
    if (!$this->workspaceManager
        ->hasActiveWorkspace()) {
        return $this->inner
            ->getCanonicalMultiple($entity_type_id, $entity_ids, $contexts);
    }
    return $this->inner
        ->getActiveMultiple($entity_type_id, $entity_ids, $contexts);
}

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