class SettingsTrayFormAnnotationNoneBlock

Same name in other branches
  1. 9 core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/SettingsTrayFormAnnotationNoneBlock.php \Drupal\settings_tray_test\Plugin\Block\SettingsTrayFormAnnotationNoneBlock
  2. 10 core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/SettingsTrayFormAnnotationNoneBlock.php \Drupal\settings_tray_test\Plugin\Block\SettingsTrayFormAnnotationNoneBlock
  3. 11.x core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/SettingsTrayFormAnnotationNoneBlock.php \Drupal\settings_tray_test\Plugin\Block\SettingsTrayFormAnnotationNoneBlock

Block that does nothing explicit for Settings Tray.

Plugin annotation


@Block(
  id = "settings_tray_test_none",
  admin_label = "Settings Tray test block: forms[settings_tray] is not specified",
)

Hierarchy

Expanded class hierarchy of SettingsTrayFormAnnotationNoneBlock

1 file declares its use of SettingsTrayFormAnnotationNoneBlock
SettingsTrayBlockFormTest.php in core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php

File

core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/SettingsTrayFormAnnotationNoneBlock.php, line 15

Namespace

Drupal\settings_tray_test\Plugin\Block
View source
class SettingsTrayFormAnnotationNoneBlock extends BlockBase {
    
    /**
     * {@inheritdoc}
     */
    public function build() {
        return [
            '#markup' => '<span>none</span>',
        ];
    }

}

Members

Title Sort descending Modifiers Object type Summary
SettingsTrayFormAnnotationNoneBlock::build public function

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