function ExampleUppercaseBlock::build

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

Overrides BlockPluginInterface::build

File

modules/block_example/src/Plugin/Block/ExampleUppercaseBlock.php, line 20

Class

ExampleUppercaseBlock
Provides a 'Example: uppercase this please' block.

Namespace

Drupal\block_example\Plugin\Block

Code

public function build() {
    return [
        '#markup' => $this->t("This block's title is changed to uppercase. Any block title which contains 'uppercase' will also be changed to uppercase."),
    ];
}