You are here

public function ViewsCount::getResultPass in Site Audit 8.3

.

Overrides SiteAuditCheckBase::getResultPass

1 call to ViewsCount::getResultPass()
ViewsCount::getResultWarn in src/Plugin/SiteAuditCheck/ViewsCount.php
.

File

src/Plugin/SiteAuditCheck/ViewsCount.php, line 34

Class

ViewsCount
Provides the ViewsCount Check.

Namespace

Drupal\site_audit\Plugin\SiteAuditCheck

Code

public function getResultPass() {
  $views_count = count($this->registry->views);
  if (!$views_count) {
    return $this
      ->t('There are no enabled views.');
  }
  return $this
    ->t('There are @count_views enabled views.', [
    '@count_views' => count($this->registry->views),
  ]);
}