class ServiceContainerBlock in Service Container 7
Same name and namespace in other branches
- 7.2 modules/utility/service_container_block/src/Plugin/Block/ServiceContainerBlock.php \Drupal\service_container_block\Plugin\Block\ServiceContainerBlock
Defines a Drupal Block.
Plugin annotation
@Block(
id = "ServiceContainerBlock",
admin_label = "Service Container admin label",
label = "Service Container Block",
category = "Utility"
)
Hierarchy
- class \Drupal\service_container_block\Plugin\Block\ServiceContainerBlock
Expanded class hierarchy of ServiceContainerBlock
File
- modules/
utility/ service_container_block/ src/ Plugin/ Block/ ServiceContainerBlock.php, line 21 - Contains \Drupal\service_container_block\Plugin\Block\ServiceContainerBlock.
Namespace
Drupal\service_container_block\Plugin\BlockView source
class ServiceContainerBlock {
/**
* {@inheritdoc}
*/
public function build() {
return 'Hello World !';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServiceContainerBlock:: |
public | function |