You are here

function config_pages_find_parent_route_name in Config Pages 8

Same name and namespace in other branches
  1. 8.3 config_pages.module \config_pages_find_parent_route_name()
  2. 8.2 config_pages.module \config_pages_find_parent_route_name()

Parameters

string $path: Get parent route name from path.

Return value

mixed Route name or false.

1 call to config_pages_find_parent_route_name()
config_pages_menu_links_discovered_alter in ./config_pages.module
Implements hook_menu_links_discovered_alter().

File

./config_pages.module, line 141
Module hooks.

Code

function config_pages_find_parent_route_name($path) {
  $parent_path = substr($path, 0, strrpos($path, '/'));
  return config_pages_get_route_name_from_path($parent_path);
}