You are here

public function BodyClass::summary in Context 8

Same name and namespace in other branches
  1. 8.4 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

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'];
}