class Block in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Core/Block/Annotation/Block.php \Drupal\Core\Block\Annotation\Block
Defines a Block annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\Core\Block\Annotation\Block
Expanded class hierarchy of Block
2 string references to 'Block'
- ContainerAwarePluginManagerTest::getContainerDefinition in tests/
src/ Plugin/ ContainerAwarePluginManagerTest.php - Returns a container definition used for testing.
- service_container_block.services.yml in modules/
utility/ service_container_block/ service_container_block.services.yml - modules/utility/service_container_block/service_container_block.services.yml
1 class is annotated with Block
- ServiceContainerBlock in modules/
utility/ service_container_block/ src/ Plugin/ Block/ ServiceContainerBlock.php - Defines a Drupal Block.
File
- lib/
Drupal/ Core/ Block/ Annotation/ Block.php, line 19 - Contains \Drupal\Core\Block\Annotation\Block.
Namespace
Drupal\Core\Block\AnnotationView source
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 = '';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Block:: |
public | property | The administrative label of the block. | |
Block:: |
public | property | The category in the admin UI where the block will be listed. | |
Block:: |
public | property | Class used to retrieve derivative definitions of the block. | |
Block:: |
public | property | The plugin ID. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. |