Security update to Drupal 8.4.6
[yaffs-website] / web / core / modules / block / tests / modules / block_test / src / Plugin / Block / TestFormBlock.php
1 <?php
2
3 namespace Drupal\block_test\Plugin\Block;
4
5 use Drupal\Core\Block\BlockBase;
6
7 /**
8  * Provides a block to test caching.
9  *
10  * @Block(
11  *   id = "test_form_in_block",
12  *   admin_label = @Translation("Test form block caching")
13  * )
14  */
15 class TestFormBlock extends BlockBase {
16
17   /**
18    * {@inheritdoc}
19    */
20   public function build() {
21     return \Drupal::formBuilder()->getForm('Drupal\block_test\Form\TestForm');
22   }
23
24 }