You are here

WebformTestBlockConditionBlock.php in Webform 6.x

File

tests/modules/webform_test_block_context/src/Plugin/Block/WebformTestBlockConditionBlock.php
View source
<?php

namespace Drupal\webform_test_block_context\Plugin\Block;

use Drupal\Core\Block\BlockBase;

/**
 * Provides a 'webform_test_block_context' block.
 *
 * @Block(
 *   id = "webform_test_block_context_block",
 *   admin_label = @Translation("Webform Block Condition"),
 *   category = @Translation("Webform Test")
 * )
 */
class WebformTestBlockConditionBlock extends BlockBase {

  /**
   * {@inheritdoc}
   */
  public function build() {
    return [
      '#markup' => '{This is a test of webform block contexts}',
    ];
  }

}

Classes

Namesort descending Description
WebformTestBlockConditionBlock Provides a 'webform_test_block_context' block.