You are here

class ContextReaction in Context 8

Same name and namespace in other branches
  1. 8.4 src/Reaction/Annotation/ContextReaction.php \Drupal\context\Reaction\Annotation\ContextReaction
  2. 8.0 src/Reaction/Annotation/ContextReaction.php \Drupal\context\Reaction\Annotation\ContextReaction

Defines an context reaction annotation object.

Plugin Namespace: Plugin\ContextReaction

Hierarchy

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.

... See full list

File

src/Reaction/Annotation/ContextReaction.php, line 19
Contains \Drupal\context\Reaction\Annotation\ContextReaction.

Namespace

Drupal\context\Reaction\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
ContextReaction::$description public property A brief description of the context reaction.
ContextReaction::$id public property The plugin ID.
ContextReaction::$label public property The human-readable name of the context reaction.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2