public function ModerationDashboardAccess::summary in Moderation Dashboard 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/Condition/ModerationDashboardAccess.php \Drupal\moderation_dashboard\Plugin\Condition\ModerationDashboardAccess::summary()
Provides a human readable summary of the condition's configuration.
Overrides ConditionInterface::summary
File
- src/
Plugin/ Condition/ ModerationDashboardAccess.php, line 134
Class
- ModerationDashboardAccess
- Provides a 'Moderation Dashboard Access' condition.
Namespace
Drupal\moderation_dashboard\Plugin\ConditionCode
public function summary() {
if ($this
->isNegated()) {
return $this
->t("User can't access moderation dashboard.");
}
return $this
->t('User can access moderation dashboard.');
}