public function HasModeratedContentType::summary in Moderation Dashboard 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Condition/HasModeratedContentType.php \Drupal\moderation_dashboard\Plugin\Condition\HasModeratedContentType::summary()
Provides a human readable summary of the condition's configuration.
Overrides ConditionInterface::summary
File
- src/
Plugin/ Condition/ HasModeratedContentType.php, line 137
Class
- HasModeratedContentType
- Provides a 'Has Moderated Content Type' condition.
Namespace
Drupal\moderation_dashboard\Plugin\ConditionCode
public function summary() {
if ($this
->isNegated()) {
return $this
->t("Site doesn't have moderated content type(s).");
}
return $this
->t('Site has moderated content type(s).');
}