class BlockStyle in Block Style Plugins 8
Same name in this branch
- 8 src/Annotation/BlockStyle.php \Drupal\block_style_plugins\Annotation\BlockStyle
- 8 src/Plugin/BlockStyle.php \Drupal\block_style_plugins\Plugin\BlockStyle
Same name and namespace in other branches
- 8.2 src/Annotation/BlockStyle.php \Drupal\block_style_plugins\Annotation\BlockStyle
Defines a Block style item annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\block_style_plugins\Annotation\BlockStyle
Expanded class hierarchy of BlockStyle
See also
\Drupal\block_style_plugins\Plugin\BlockStyleManager
2 classes are annotated with BlockStyle
- DropdownWithInclude in tests/
modules/ block_style_plugins_test/ src/ Plugin/ BlockStyle/ DropdownWithInclude.php - Demonstrate using the 'include' parameter.
- SimpleClass in tests/
modules/ block_style_plugins_test/ src/ Plugin/ BlockStyle/ SimpleClass.php - Provides a 'SimpleClass' block style for adding a class in a text field.
File
- src/
Annotation/ BlockStyle.php, line 15
Namespace
Drupal\block_style_plugins\AnnotationView source
class BlockStyle extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The label of the plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
/**
* Block types to exclude.
*
* @var array
*/
public $exclude = [];
/**
* Include only these block types.
*
* @var array
*/
public $include = [];
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlockStyle:: |
public | property | Block types to exclude. | |
BlockStyle:: |
public | property | The plugin ID. | |
BlockStyle:: |
public | property | Include only these block types. | |
BlockStyle:: |
public | property | The label of the plugin. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
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. | 2 |