protected function EntityTranslationController::getPathInstance

Returns an instance of the given path.

Parameters

$path: An internal path containing the entity id wildcard.

Return value

string The instantiated path.

3 calls to EntityTranslationController::getPathInstance()
EntityTranslationController::getBasePath in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php
Implements EntityTranslationControllerInterface::getBasePath().
EntityTranslationController::getEditPath in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php
Implements EntityTranslationControllerInterface::getEditPath().
EntityTranslationController::getViewPath in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php
Implements EntityTranslationControllerInterface::getViewPath().

File

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

Class

EntityTranslationController
Base class for entity translation controllers.

Namespace

Drupal\translation_entity

Code

protected function getPathInstance($path, $entity_id) {
  $wildcard = $this->entityInfo['menu_path_wildcard'];
  return str_replace($wildcard, $entity_id, $path);
}