BlockRefreshBlock.php in Block Refresh 8
Contains \Drupal\block_refresh\Plugin\Block\BlockRefreshBlockBlock.
Namespace
Drupal\block_refresh\Plugin\BlockFile
lib/Drupal/block_refresh/Plugin/Block/BlockRefreshBlock.phpView source
<?php
/**
* @file
* Contains \Drupal\block_refresh\Plugin\Block\BlockRefreshBlockBlock.
*/
namespace Drupal\block_refresh\Plugin\Block;
use Drupal\block\Annotation\Block;
use Drupal\block\BlockBase;
use Drupal\Core\Annotation\Translation;
/**
* Provides a 'Block Refresh' block for testing.
*
* @Block(
* id = "block_refresh_block",
* subject = "Block refresh test block",
* admin_label = @Translation("Block Refresh"),
* module = "block_refresh"
* )
*/
class BlockRefreshBlock extends BlockBase {
/**
* {@inheritdoc}
*/
public function build() {
return array(
'#markup' => time(),
);
}
}
Classes
Name | Description |
---|---|
BlockRefreshBlock | Provides a 'Block Refresh' block for testing. |