You are here

protected property DisplayBase::$blockInfo in Layout 8.2

Contains all block configuration.

There are two levels to the configuration contained herein: display-level block configuration, and then block instance configuration.

Block instance configuration is stored in a separate config object. This array is keyed by the config name that uniquely identifies each block instance. At runtime, various object methods will retrieve this additional config and return it to calling code.

Display-level block configuration is data that determines the behavior of a block *in this display*. The most important examples of this are the region to which the block is assigned, and its weighting in that region.

array(
  'block1-configkey' => array(
    'region' => 'content',
    // store the region type name here so that we can do type conversion w/out
    // needing to have access to the original layout plugin
    'region-type' => 'content',
    // increment by 100 so there is ALWAYS plenty of space for manual insertion
    'weight' => -100,
  ),
  'block2-configkey' => array(
    'region' => 'sidebar_first',
    'region-type' => 'aside',
    'weight' => -100,
  ),
  'block2-configkey' => array(
    'region' => 'sidebar_first',
    'region-type' => 'aside',
    'weight' => 0,
  ),
  'maincontent' => array(
    'region' => 'content',
    'region-type' => 'content',
    'weight' => -200,
  ),
);

Type: array

File

lib/Drupal/layout/Config/DisplayBase.php, line 79
Definition of Drupal\layout\Config\DisplayBase.

Class

DisplayBase
Base class for 'display' and 'unbound_display' configuration entities.

Namespace

Drupal\layout\Config

Code

protected $blockInfo = array();