You are here

public function ServiceAuditFilesNotInDatabase::auditfilesBuildUri in Audit Files 8.2

Same name and namespace in other branches
  1. 8.3 src/ServiceAuditFilesNotInDatabase.php \Drupal\auditfiles\ServiceAuditFilesNotInDatabase::auditfilesBuildUri()

Returns the internal path to the given file.

2 calls to ServiceAuditFilesNotInDatabase::auditfilesBuildUri()
ServiceAuditFilesNotInDatabase::auditfilesNotInDatabaseBatchAddProcessFile in src/ServiceAuditFilesNotInDatabase.php
Adds the specified file to the database.
ServiceAuditFilesNotInDatabase::auditfilesNotInDatabaseIsFileInDatabase in src/ServiceAuditFilesNotInDatabase.php
Checks if the specified file is in the database.

File

src/ServiceAuditFilesNotInDatabase.php, line 544

Class

ServiceAuditFilesNotInDatabase
Define all methods that are used on Files not in database functionality.

Namespace

Drupal\auditfiles

Code

public function auditfilesBuildUri($file_pathname) {
  $config = $this->configFactory
    ->get('auditfiles.settings');
  $file_system_stream = $config
    ->get('auditfiles_file_system_path');
  return "{$file_system_stream}://{$file_pathname}";
}