function ExampleConfigurableTextBlock::build

Same name and namespace in other branches
  1. 4.0.x modules/block_example/src/Plugin/Block/ExampleConfigurableTextBlock.php \Drupal\block_example\Plugin\Block\ExampleConfigurableTextBlock::build()

Overrides BlockPluginInterface::build

File

modules/block_example/src/Plugin/Block/ExampleConfigurableTextBlock.php, line 76

Class

ExampleConfigurableTextBlock
Provides a 'Example: configurable text string' block.

Namespace

Drupal\block_example\Plugin\Block

Code

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