function ValidationErrorBlock::build

Same name in other branches
  1. 9 core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/ValidationErrorBlock.php \Drupal\settings_tray_test\Plugin\Block\ValidationErrorBlock::build()
  2. 8.9.x core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/ValidationErrorBlock.php \Drupal\settings_tray_test\Plugin\Block\ValidationErrorBlock::build()
  3. 10 core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/ValidationErrorBlock.php \Drupal\settings_tray_test\Plugin\Block\ValidationErrorBlock::build()

Overrides BlockPluginInterface::build

File

core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/ValidationErrorBlock.php, line 24

Class

ValidationErrorBlock
Provides a 'Block with validation error' test block.

Namespace

Drupal\settings_tray_test\Plugin\Block

Code

public function build() {
    return [
        '#markup' => '<span>If I had more time this would be very witty :(.</span>',
    ];
}

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