Returns an instance of the given path.
Parameters
$path:
An internal path containing the entity id wildcard.
Return value
string
The instantiated path.
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);
}