function SettingsTrayFormAnnotationIsClassBlock::build

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

Overrides BlockPluginInterface::build

File

core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/SettingsTrayFormAnnotationIsClassBlock.php, line 27

Class

SettingsTrayFormAnnotationIsClassBlock
Block that explicitly provides a "settings_tray" form class.

Namespace

Drupal\settings_tray_test\Plugin\Block

Code

public function build() {
    return [
        '#markup' => '<span>class</span>',
    ];
}

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