You are here

public function ModerationDashboardAccess::summary in Moderation Dashboard 8

Same name and namespace in other branches
  1. 2.0.x 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 129

Class

ModerationDashboardAccess
Provides a 'Moderation Dashboard Access' condition.

Namespace

Drupal\moderation_dashboard\Plugin\Condition

Code

public function summary() {
  if ($this
    ->isNegated()) {
    return $this
      ->t("User can't access moderation dashboard.");
  }
  return $this
    ->t('User can access moderation dashboard.');
}