function WorkspacesEntityRepository::getTranslationFromContext

Overrides EntityRepositoryInterface::getTranslationFromContext

File

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

Class

WorkspacesEntityRepository
Provides workspace-specific mechanisms for retrieving entities.

Namespace

Drupal\workspaces

Code

public function getTranslationFromContext(EntityInterface $entity, $langcode = NULL, $context = []) {
    return $this->inner
        ->getTranslationFromContext($entity, $langcode, $context);
}

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