public function ContentFieldsUnused::getResultWarn in Site Audit 8.3
.
Overrides SiteAuditCheckBase::getResultWarn
File
- src/
Plugin/ SiteAuditCheck/ ContentFieldsUnused.php, line 39
Class
- ContentFieldsUnused
- Provides the ContentFieldsUnused Check.
Namespace
Drupal\site_audit\Plugin\SiteAuditCheckCode
public function getResultWarn() {
$report = [];
foreach ($this->registry->fields_unused as $bundle_name => $fields) {
$report[] = $bundle_name .= ': ' . implode(', ', $fields);
}
return $this
->t('The following fields are unused: @report', [
'@report' => implode('; ', $report),
]);
}