public function ViewInclusion::summary in Context 8.4
Same name and namespace in other branches
- 8 src/Plugin/Condition/ViewInclusion.php \Drupal\context\Plugin\Condition\ViewInclusion::summary()
Provides a human readable summary of the condition's configuration.
Overrides ConditionInterface::summary
File
- src/
Plugin/ Condition/ ViewInclusion.php, line 124
Class
- ViewInclusion
- Provides a 'Views' condition.
Namespace
Drupal\context\Plugin\ConditionCode
public function summary() {
if (empty($this->configuration['view_inclusion'])) {
return $this
->t('No views page is selected.');
}
return $this
->t('Return true on the following views pages: @pages', [
'@pages' => str_replace('-', '.', implode(', ', $this->configuration['view_inclusion'])),
]);
}