function _translation_entity_menu_strip_loaders

Strips out menu loaders from the given path.

Parameters

string $path: The path to process.

Return value

The given path where all the menu loaders are replaced with "%".

1 call to _translation_entity_menu_strip_loaders()
translation_entity_types_translatable in drupal/core/modules/translation_entity/translation_entity.module
Returns all the translatable entity types.

File

drupal/core/modules/translation_entity/translation_entity.module, line 270
Allows entities to be translated into different languages.

Code

function _translation_entity_menu_strip_loaders($path) {
  return preg_replace('|%[^/]+|', '%', $path);
}