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 172
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 = array_merge($block_info, $children_blocks[$this->childDelta]);
  }

  return $block_info;
}