You are here

public function ContextAll::summary in Context 8.4

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

Overrides ConditionInterface::summary

File

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

Class

ContextAll
Provides a 'Context (all)' 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,
  ]);
}