1 layout.module | layout_get_path_layout_names($path) |
Get a list of layouts that share a particular path.
File
- core/
modules/ layout/ layout.module, line 1450 - The Layout module creates pages and wraps existing pages in layouts.
Code
function layout_get_path_layout_names($path) {
$path_map = &backdrop_static(__FUNCTION__, array());
if (empty($path_map)) {
$configs = layout_get_all_configs('layout');
foreach ($configs as $layout_name => $config) {
if (isset($config['path'])) {
$path_map[$config['path']][] = $layout_name;
}
}
}
return isset($path_map[$path]) ? $path_map[$path] : array();
}