public function EntityTranslationController::getViewPath

Implements EntityTranslationControllerInterface::getViewPath().

Overrides EntityTranslationControllerInterface::getViewPath

1 call to EntityTranslationController::getViewPath()
ProfileTranslationController::entityFormSave in drupal/core/modules/user/lib/Drupal/user/ProfileTranslationController.php
Form submission handler for ProfileTranslationController::entityFormAlter().

File

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

Class

EntityTranslationController
Base class for entity translation controllers.

Namespace

Drupal\translation_entity

Code

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