You are here

public function HasModeratedContentType::summary in Moderation Dashboard 2.0.x

Same name and namespace in other branches
  1. 8 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\Condition

Code

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).');
}