You are here

public function BodyClass::summary in Context 8.4

Same name and namespace in other branches
  1. 8 src/Plugin/ContextReaction/BodyClass.php \Drupal\context\Plugin\ContextReaction\BodyClass::summary()

Provides a human readable summary of the condition's configuration.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup An object that, when cast to a string, returns the translated string.

Overrides ContextReactionInterface::summary

File

src/Plugin/ContextReaction/BodyClass.php, line 30

Class

BodyClass
Provides a content reaction that adds a new css class.

Namespace

Drupal\context\Plugin\ContextReaction

Code

public function summary() {
  return $this
    ->getConfiguration()['body_class'];
}