You are here

ServiceContainerBlock.php in Service Container 7.2

File

modules/utility/service_container_block/src/Plugin/Block/ServiceContainerBlock.php
View 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

Namesort descending Description
ServiceContainerBlock Defines a Drupal Block.