Security update to Drupal 8.4.6
[yaffs-website] / web / core / modules / block / tests / modules / block_test / src / Plugin / Block / TestHtmlBlock.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 HTML.
9  *
10  * @Block(
11  *   id = "test_html",
12  *   admin_label = @Translation("Test HTML block")
13  * )
14  */
15 class TestHtmlBlock extends BlockBase {
16
17   /**
18    * {@inheritdoc}
19    */
20   public function build() {
21     return [
22       '#attributes' => \Drupal::state()->get('block_test.attributes'),
23       '#children' => \Drupal::state()->get('block_test.content'),
24     ];
25   }
26
27 }