SettingsTrayFormAnnotationIsFalseBlock.php
Same filename in other branches
- 8.9.x core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/SettingsTrayFormAnnotationIsFalseBlock.php
- 10 core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/SettingsTrayFormAnnotationIsFalseBlock.php
- 11.x core/modules/settings_tray/tests/modules/settings_tray_test/src/Plugin/Block/SettingsTrayFormAnnotationIsFalseBlock.php
Namespace
Drupal\settings_tray_test\Plugin\BlockFile
-
core/
modules/ settings_tray/ tests/ modules/ settings_tray_test/ src/ Plugin/ Block/ SettingsTrayFormAnnotationIsFalseBlock.php
View source
<?php
namespace Drupal\settings_tray_test\Plugin\Block;
use Drupal\Core\Block\BlockBase;
/**
* Block that explicitly provides no "settings_tray" form, thus opting out.
*
* @Block(
* id = "settings_tray_test_false",
* admin_label = "Settings Tray test block: forms[settings_tray]=FALSE",
* forms = {
* "settings_tray" = FALSE,
* },
* )
*/
class SettingsTrayFormAnnotationIsFalseBlock extends BlockBase {
/**
* {@inheritdoc}
*/
public function build() {
return [
'#markup' => '<span>FALSE</span>',
];
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
SettingsTrayFormAnnotationIsFalseBlock | Block that explicitly provides no "settings_tray" form, thus opting out. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.