You are here

public function ServiceAuditFilesReferencedNotUsed::auditfilesReferencedNotUsedGetHeader in Audit Files 4.x

Same name and namespace in other branches
  1. 8.3 src/ServiceAuditFilesReferencedNotUsed.php \Drupal\auditfiles\ServiceAuditFilesReferencedNotUsed::auditfilesReferencedNotUsedGetHeader()
  2. 8.2 src/ServiceAuditFilesReferencedNotUsed.php \Drupal\auditfiles\ServiceAuditFilesReferencedNotUsed::auditfilesReferencedNotUsedGetHeader()

Returns the header to use for the display table.

Return value

array The header to use.

File

src/ServiceAuditFilesReferencedNotUsed.php, line 185

Class

ServiceAuditFilesReferencedNotUsed
List all methods used in referenced not used functionality.

Namespace

Drupal\auditfiles

Code

public function auditfilesReferencedNotUsedGetHeader() {
  return [
    'file_id' => [
      'data' => $this->stringTranslation
        ->translate('File ID'),
    ],
    'entity_type' => [
      'data' => $this->stringTranslation
        ->translate('Referencing entity type'),
    ],
    'entity_id_display' => [
      'data' => $this->stringTranslation
        ->translate('Referencing entity ID'),
    ],
    'field' => [
      'data' => $this->stringTranslation
        ->translate('Field referenced in'),
    ],
    'uri' => [
      'data' => $this->stringTranslation
        ->translate('URI'),
    ],
    'filemime' => [
      'data' => $this->stringTranslation
        ->translate('MIME'),
    ],
    'filesize' => [
      'data' => $this->stringTranslation
        ->translate('Size (in bytes)'),
    ],
  ];
}