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\DiagnosticCheckCode
public function filterErrors() {
return $this
->filter([
DiagnosticCheckInterface::SEVERITY_ERROR,
]);
}