public function DiagnosticsService::filterWarnings in Purge 8.3
Get only SEVERITY_WARNING level checks.
Return value
\Iterator[] \Iterator object that yields DiagnosticCheckInterface instances.
Overrides DiagnosticsServiceInterface::filterWarnings
File
- src/
Plugin/ Purge/ DiagnosticCheck/ DiagnosticsService.php, line 100
Class
- DiagnosticsService
- Provides a service that interacts with diagnostic checks.
Namespace
Drupal\purge\Plugin\Purge\DiagnosticCheckCode
public function filterWarnings() {
return $this
->filter([
DiagnosticCheckInterface::SEVERITY_WARNING,
]);
}