1 field.block.inc FieldBlock::__construct($plugin_name, array $data = array())

Create a new Block object.

Parameters

string $plugin_name: The Layout plugin name. In the case of a block, this is a key identifying the block module, delta, and (if applicable) child delta, separated by colons.

array $data: Settings that provide current configuration of the block, such as access rules, style settings, block settings, etc.

Overrides Block::__construct

File

core/modules/field/field.block.inc, line 8

Class

FieldBlock
FieldBlock extends Block

Code

function __construct($plugin_name, array $data = array()) {
  parent::__construct($plugin_name, $data);

  $this->settings += array(
    'label' => 'hidden',
    'formatter' => '',
    'formatter_settings' => array(),
    'delta_offset' => 0,
    'delta_limit' => '',
    'delta_reversed' => 0,
  );
}