You are here

public function ServiceAuditFilesNotOnServer::auditfilesNotOnServerGetHeader in Audit Files 8.3

Same name and namespace in other branches
  1. 8.2 src/ServiceAuditFilesNotOnServer.php \Drupal\auditfiles\ServiceAuditFilesNotOnServer::auditfilesNotOnServerGetHeader()
  2. 4.x src/ServiceAuditFilesNotOnServer.php \Drupal\auditfiles\ServiceAuditFilesNotOnServer::auditfilesNotOnServerGetHeader()

Returns the header to use for the display table.

Return value

array The header to use.

File

src/ServiceAuditFilesNotOnServer.php, line 137

Class

ServiceAuditFilesNotOnServer
Providing the service that used in not in database functionality.

Namespace

Drupal\auditfiles

Code

public function auditfilesNotOnServerGetHeader() {
  return [
    'fid' => [
      'data' => $this->stringTranslation
        ->translate('File ID'),
    ],
    'uid' => [
      'data' => $this->stringTranslation
        ->translate('User ID'),
    ],
    'filename' => [
      'data' => $this->stringTranslation
        ->translate('Name'),
    ],
    'uri' => [
      'data' => $this->stringTranslation
        ->translate('URI'),
    ],
    'path' => [
      'data' => $this->stringTranslation
        ->translate('Path'),
    ],
    'filemime' => [
      'data' => $this->stringTranslation
        ->translate('MIME'),
    ],
    'filesize' => [
      'data' => $this->stringTranslation
        ->translate('Size'),
    ],
    'datetime' => [
      'data' => $this->stringTranslation
        ->translate('When added'),
    ],
    'status' => [
      'data' => $this->stringTranslation
        ->translate('Status'),
    ],
  ];
}