699a09a501b04415823966882f2c4b0a5bb01e4f
[yaffs-website] / web / core / modules / settings_tray / tests / modules / settings_tray_test / src / Plugin / Block / SettingsTrayFormAnnotationIsClassBlock.php
1 <?php
2
3 namespace Drupal\settings_tray_test\Plugin\Block;
4
5 use Drupal\Core\Block\BlockBase;
6
7 /**
8  * Block that explicitly provides a "settings_tray" form class.
9  *
10  * @Block(
11  *   id = "settings_tray_test_class",
12  *   admin_label = "Settings Tray test block: forms[settings_tray]=class",
13  *   forms = {
14  *     "settings_tray" = "\Drupal\settings_tray_test\Form\SettingsTrayFormAnnotationIsClassBlockForm",
15  *   },
16  * )
17  */
18 class SettingsTrayFormAnnotationIsClassBlock extends BlockBase {
19
20   /**
21    * {@inheritdoc}
22    */
23   public function build() {
24     return ['#markup' => '<span>class</span>'];
25   }
26
27 }