1 layout.module layout_tempstore_block_load($layout_block_uuid, $layout_name)

Menu loader to load an individual block from a layout.

File

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

Code

function layout_tempstore_block_load($layout_block_uuid, $layout_name) {
  $layout = layout_tempstore_load($layout_name);
  $block = FALSE;

  if (isset($layout->in_progress['block']) && $layout->in_progress['block']->uuid === $layout_block_uuid) {
    $block = $layout->in_progress['block'];
  }
  elseif (isset($layout->content[$layout_block_uuid])) {
    $block = $layout->content[$layout_block_uuid];
  }

  return $block;
}