Block.php in Zircon Profile 8.0
Same filename in this branch
- 8.0 core/modules/block/src/Entity/Block.php
- 8.0 vendor/twig/twig/lib/Twig/Node/Block.php
- 8.0 vendor/twig/twig/lib/Twig/TokenParser/Block.php
- 8.0 core/lib/Drupal/Core/Block/Annotation/Block.php
- 8.0 core/modules/views/src/Plugin/views/display/Block.php
- 8.0 core/modules/block/src/Plugin/migrate/source/Block.php
Same filename and directory in other branches
Contains \Drupal\Core\Block\Annotation\Block.
Namespace
Drupal\Core\Block\AnnotationFile
core/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 = '';
}