You are here

public function CertManager::certWritable in Lockr 4.x

Returns TRUE if the current cert and its directory are writable.

Return value

bool

File

src/CertManager.php, line 71

Class

CertManager
Helper class for managing Lockr certificates.

Namespace

Drupal\lockr

Code

public function certWritable() {
  $cert_path = $this
    ->certPath();
  return is_writable($cert_path) && is_writable(dirname($cert_path));
}