Implements EntityTranslationControllerInterface::getBasePath().
Overrides EntityTranslationControllerInterface::getBasePath
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());
}