You are here

class BlockRefreshBlock in Block Refresh 8

Provides a 'Block Refresh' block for testing.

Plugin annotation


@Block(
  id = "block_refresh_block",
  subject = "Block refresh test block",
  admin_label = @Translation("Block Refresh"),
  module = "block_refresh"
)

Hierarchy

  • class \Drupal\block_refresh\Plugin\Block\BlockRefreshBlock extends \Drupal\block\BlockBase

Expanded class hierarchy of BlockRefreshBlock

File

lib/Drupal/block_refresh/Plugin/Block/BlockRefreshBlock.php, line 24
Contains \Drupal\block_refresh\Plugin\Block\BlockRefreshBlockBlock.

Namespace

Drupal\block_refresh\Plugin\Block
View source
class BlockRefreshBlock extends BlockBase {

  /**
   * {@inheritdoc}
   */
  public function build() {
    return array(
      '#markup' => time(),
    );
  }

}

Members