function TestAjaxBlock::build

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php \Drupal\layout_builder_test\Plugin\Block\TestAjaxBlock::build()
  2. 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()
  3. 10 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 53

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.