class ContextReaction in Context 8
Same name and namespace in other branches
- 8.4 src/Reaction/Annotation/ContextReaction.php \Drupal\context\Reaction\Annotation\ContextReaction
- 8.0 src/Reaction/Annotation/ContextReaction.php \Drupal\context\Reaction\Annotation\ContextReaction
Defines an context reaction annotation object.
Plugin Namespace: Plugin\ContextReaction
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\context\Reaction\Annotation\ContextReaction
Expanded class hierarchy of ContextReaction
6 classes are annotated with ContextReaction
- Blocks in src/
Plugin/ ContextReaction/ Blocks.php - Provides a content reaction that will let you place blocks in the current themes regions.
- BodyClass in src/
Plugin/ ContextReaction/ BodyClass.php - Provides a content reaction that adds a new css class.
- Menu in src/
Plugin/ ContextReaction/ Menu.php - Provides a content reaction that adds a css 'active' class to menu item.
- PageTemplateSuggestions in src/
Plugin/ ContextReaction/ PageTemplateSuggestions.php - Provides a content reaction that will let you change theme.
- Regions in src/
Plugin/ ContextReaction/ Regions.php - Provides a content reaction that will let you disable regions.
File
- src/
Reaction/ Annotation/ ContextReaction.php, line 19 - Contains \Drupal\context\Reaction\Annotation\ContextReaction.
Namespace
Drupal\context\Reaction\AnnotationView source
class ContextReaction extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the context reaction.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $label;
/**
* A brief description of the context reaction.
*
* This will be shown when adding or configuring this context reaction.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation (optional)
*/
public $description = '';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContextReaction:: |
public | property | A brief description of the context reaction. | |
ContextReaction:: |
public | property | The plugin ID. | |
ContextReaction:: |
public | property | The human-readable name of the context reaction. | |
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 |