You are here

public function CertManager::certDir in Lockr 4.x

Returns the absolute path to a Lockr cert directory.

Parameters

string $name: The name of the Lockr cert.

Return value

string Returns the absolute path.

1 call to CertManager::certDir()
CertManager::backupCert in src/CertManager.php
Backs up the current cert into the private directory.

File

src/CertManager.php, line 148

Class

CertManager
Helper class for managing Lockr certificates.

Namespace

Drupal\lockr

Code

public function certDir($name) {
  return $this->fileSystem
    ->realpath("private://lockr/{$name}");
}