You are here

public function CdnBase::getLocalDirectoryName in Libraries CDN API 8

Get the local directory name of a library.

Parameters

string $version: The version to check the file against.

Return value

string Return the directory name.

Overrides CdnBaseInterface::getLocalDirectoryName

2 calls to CdnBase::getLocalDirectoryName()
CdnBase::getLocalCopy in src/CdnBase.php
Copy a library from the CDN to the local filesystem.
CdnBase::getLocalFileName in src/CdnBase.php
Get the local file name of a library file.

File

src/CdnBase.php, line 238
Class CdnBase.

Class

CdnBase
Class CdnBase.

Namespace

Drupal\libraries_cdn

Code

public function getLocalDirectoryName($version = NULL) {
  return implode('/', array(
    'public:/',
    'libraries',
    $this
      ->getPluginId(),
    $this
      ->getLibrary(),
    $version,
  ));
}