class SettingsTrayFormAnnotationIsFalseBlock

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

Block that explicitly provides no "settings_tray" form, thus opting out.

Plugin annotation


@Block(
  id = "settings_tray_test_false",
  admin_label = "Settings Tray test block: forms[settings_tray]=FALSE",
  forms = {
    "settings_tray" = FALSE,
  },
)

Hierarchy

Expanded class hierarchy of SettingsTrayFormAnnotationIsFalseBlock

File

core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/SettingsTrayFormAnnotationIsFalseBlock.php, line 18

Namespace

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

}

Members

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

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