Block.php in Service Container 7.2
Same filename and directory in other branches
Contains \Drupal\Core\Block\Annotation\Block.
Namespace
Drupal\Core\Block\AnnotationFile
lib/Drupal/Core/Block/Annotation/Block.phpView source
<?php
/**
* @file
* Contains \Drupal\Core\Block\Annotation\Block.
*/
namespace Drupal\Core\Block\Annotation;
use Drupal\Component\Annotation\Plugin;
/**
* Defines a Block annotation object.
*
* @ingroup block_api
*
* @Annotation
*/
class Block extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The administrative label of the block.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $admin_label = '';
/**
* The category in the admin UI where the block will be listed.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $category = '';
/**
* Class used to retrieve derivative definitions of the block.
*
* @var string
*/
public $derivative = '';
}