You are here

public function CDNBase::getLocalDirectoryName in Libraries CDN API 7

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/Type/CDNBase.php
Copy a library from the CDN to the local filesystem.
CDNBase::getLocalFileName in src/Type/CDNBase.php
Get the local file name of a library file.

File

src/Type/CDNBase.php, line 234
Class CDNBase.

Class

CDNBase
Class CDNBase.

Namespace

Drupal\libraries_cdn\Type

Code

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