1 block.class.inc Block::getBlockInfo()

Return the block info for this block, as provided by hook_block_info().

Return value

array: The block info.

File

core/modules/layout/includes/block.class.inc, line 200
A class that wraps around a block to store settings information.

Class

Block
@file A class that wraps around a block to store settings information.

Code

function getBlockInfo() {
  $block_info = layout_get_block_info($this->module, $this->delta);

  // If this is a child block, merge in its child-specific data.
  if ($this->childDelta) {
    $children_blocks = $this->getChildren();
    $block_info = isset($children_blocks) ? array_merge($block_info, $children_blocks[$this->childDelta]) : NULL;
  }

  return $block_info;
}