You are here

public function ContextAny::summary in Context 8.4

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

Overrides ConditionInterface::summary

File

src/Plugin/Condition/ContextAny.php, line 113

Class

ContextAny
Provides a 'Context (any)' condition.

Namespace

Drupal\context\Plugin\Condition

Code

public function summary() {
  $contexts = array_map('trim', explode("\n", $this->configuration['values']));
  $contexts = implode(', ', $contexts);
  return $this
    ->t('Return true on the basis of other active contexts: @contexts', [
    '@contexts' => $contexts,
  ]);
}