public function EntityTranslationController::getBasePath

Implements EntityTranslationControllerInterface::getBasePath().

Overrides EntityTranslationControllerInterface::getBasePath

2 calls to EntityTranslationController::getBasePath()
EntityTranslationController::entityFormDeleteTranslation in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php
Form submission handler for EntityTranslationController::entityFormAlter().
EntityTranslationController::entityFormSourceChange in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php
Form submission handler for EntityTranslationController::entityFormAlter().

File

drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php, line 74
Definition of Drupal\translation_entity\EntityTranslationController.

Class

EntityTranslationController
Base class for entity translation controllers.

Namespace

Drupal\translation_entity

Code

public function getBasePath(EntityInterface $entity) {
  return $this
    ->getPathInstance($this->entityInfo['menu_base_path'], $entity
    ->id());
}