You are here

public function DiagnosticsServiceInterface::toRequirementsArray in Purge 8.3

Generate a Drupal-like requirements array.

Parameters

\Iterator $checks: Iterator yielding DiagnosticCheckInterface objects.

bool $prefix_title: When TRUE, this prefixes titles with "Purge" to mark their origin.

Return value

array[] Array with Drupal-like requirement arrays as values.

1 method overrides DiagnosticsServiceInterface::toRequirementsArray()
DiagnosticsService::toRequirementsArray in src/Plugin/Purge/DiagnosticCheck/DiagnosticsService.php
Generate a Drupal-like requirements array.

File

src/Plugin/Purge/DiagnosticCheck/DiagnosticsServiceInterface.php, line 101

Class

DiagnosticsServiceInterface
Describes a service that interacts with diagnostic checks.

Namespace

Drupal\purge\Plugin\Purge\DiagnosticCheck

Code

public function toRequirementsArray(\Iterator $checks, $prefix_title = FALSE);