You are here

function config_pages_find_parent_route_name in Config Pages 8.2

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

Return parent route name or false.

Parameters

string $path: Full path.

Return value

string|false 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 175
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);
}