function config_pages_find_parent_route_name in Config Pages 8
Same name and namespace in other branches
- 8.3 config_pages.module \config_pages_find_parent_route_name()
- 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()
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);
}