public function TemporaryFilesUsagesSensorPlugin::buildTableHeader in Monitoring 8
Builds the header for a table based on rows.
Do not override this method to define a static header.
Parameters
array $rows: The array of rows for which a header will be built.
Return value
array $header The associative header array for the table.
Overrides DatabaseAggregatorSensorPlugin::buildTableHeader
File
- src/
Plugin/ monitoring/ SensorPlugin/ TemporaryFilesUsagesSensorPlugin.php, line 67
Class
- TemporaryFilesUsagesSensorPlugin
- Monitors temporary files usages.
Namespace
Drupal\monitoring\Plugin\monitoring\SensorPluginCode
public function buildTableHeader($rows = []) {
return [
t('ID'),
t('Filename'),
t('Usages'),
t('Status'),
];
}