You are here

public function SiteAuditCheckContentContentEntityTypesUnused::getResultWarn in Site Audit 8.2

Implements \SiteAudit\Check\Abstract\getResultWarn().

Overrides SiteAuditCheckAbstract::getResultWarn

File

Check/Content/ContentEntityTypesUnused.php, line 46
Contains \SiteAudit\Check\Content\ContentTypesUnused.

Class

SiteAuditCheckContentContentEntityTypesUnused
Class SiteAuditCheckContentContentEntityTypesUnused.

Code

public function getResultWarn() {
  $report = array();
  foreach ($this->registry['content_types_unused'] as $entity_type => $bundle) {
    $report[] = $entity_type .= ': ' . implode(', ', $bundle);
  }
  return dt('The following content entity types are unused: @content_types_unused', array(
    '@content_types_unused' => implode('; ', $report),
  ));
}