3 namespace Drupal\block_test\Plugin\Block;
5 use Drupal\Core\Block\BlockBase;
8 * Provides a block to test HTML.
12 * admin_label = @Translation("Test HTML block")
15 class TestHtmlBlock extends BlockBase {
20 public function build() {
22 '#attributes' => \Drupal::state()->get('block_test.attributes'),
23 '#children' => \Drupal::state()->get('block_test.content'),