function TestAjaxBlock::build

Same name in other branches
  1. 8.9.x core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php \Drupal\layout_builder_test\Plugin\Block\TestAjaxBlock::build()
  2. 10 core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php \Drupal\layout_builder_test\Plugin\Block\TestAjaxBlock::build()
  3. 11.x core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php \Drupal\layout_builder_test\Plugin\Block\TestAjaxBlock::build()

Overrides BlockPluginInterface::build

File

core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php, line 52

Class

TestAjaxBlock
Provides a 'TestAjax' block.

Namespace

Drupal\layout_builder_test\Plugin\Block

Code

public function build() {
    $build['content'] = [
        '#markup' => $this->t('Every word is like an unnecessary stain on silence and nothingness.'),
    ];
    return $build;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.