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