You are here

class ServiceContainerBlock in Service Container 7.2

Same name and namespace in other branches
  1. 7 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

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\Block
View source
class ServiceContainerBlock {

  /**
   * {@inheritdoc}
   */
  public function build() {
    return 'Hello World !';
  }

}

Members