public function EntityTranslationController::getEditPath

Implements EntityTranslationControllerInterface::getEditPath().

Overrides EntityTranslationControllerInterface::getEditPath

1 call to EntityTranslationController::getEditPath()
TermTranslationController::entityFormSave in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/TermTranslationController.php
Form submission handler for TermTranslationController::entityFormAlter().

File

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

Class

EntityTranslationController
Base class for entity translation controllers.

Namespace

Drupal\translation_entity

Code

public function getEditPath(EntityInterface $entity) {
  return isset($this->entityInfo['menu_edit_path']) ? $this
    ->getPathInstance($this->entityInfo['menu_edit_path'], $entity
    ->id()) : FALSE;
}