You are here

public function DiagnosticsService::filterErrors in Purge 8.3

Get only SEVERITY_ERROR level checks.

Return value

\Iterator[] \Iterator object that yields DiagnosticCheckInterface instances.

Overrides DiagnosticsServiceInterface::filterErrors

File

src/Plugin/Purge/DiagnosticCheck/DiagnosticsService.php, line 117

Class

DiagnosticsService
Provides a service that interacts with diagnostic checks.

Namespace

Drupal\purge\Plugin\Purge\DiagnosticCheck

Code

public function filterErrors() {
  return $this
    ->filter([
    DiagnosticCheckInterface::SEVERITY_ERROR,
  ]);
}