ServiceContainerBlock.php in Service Container 7.2
Same filename and directory in other branches
File
modules/utility/service_container_block/src/Plugin/Block/ServiceContainerBlock.phpView source
<?php
/**
* @file
* Contains \Drupal\service_container_block\Plugin\Block\ServiceContainerBlock.
*/
namespace Drupal\service_container_block\Plugin\Block;
use Drupal\Component\Annotation\Plugin;
/**
* Defines a Drupal Block.
*
* @Block(
* id = "ServiceContainerBlock",
* admin_label = "Service Container admin label",
* label = "Service Container Block",
* category = "Utility"
* )
*/
class ServiceContainerBlock {
/**
* {@inheritdoc}
*/
public function build() {
return 'Hello World !';
}
}
Classes
Name | Description |
---|---|
ServiceContainerBlock | Defines a Drupal Block. |