1 layout.module layout_load_all()

Return an array of all layouts as fully loaded Layout objects.

Note that this operation can be very expensive and its use is discouraged. Use layout_load_multiple() to load specific layouts.

Return value

Layout[]: An array of Layout object instances.

File

core/modules/layout/layout.module, line 1305
The Layout module creates pages and wraps existing pages in layouts.

Code

function layout_load_all() {
  $configs = layout_get_all_configs('layout');
  $layout_names = array_keys($configs);
  return layout_load_multiple($layout_names);
}