public function TestBlockInstantiation::build

Builds and returns the renderable array for this block plugin.

Return value

array A renderable array representing the content of the block.

Overrides BlockPluginInterface::build

See also

\Drupal\block\BlockRenderController

File

drupal/core/modules/block/tests/lib/Drupal/block_test/Plugin/Block/TestBlockInstantiation.php, line 63
Contains \Drupal\block_test\Plugin\Block\TestBlockInstantiation.

Class

TestBlockInstantiation
Provides a basic block for testing block instantiation and configuration.

Namespace

Drupal\block_test\Plugin\Block

Code

public function build() {
  return array(
    '#children' => $this->configuration['display_message'],
  );
}