You are here

public function LocalLibraryTrait::setLocalPath in Libraries API 8.3

Sets the library path of the library.

Parameters

string $path: The path to the library.

See also

\Drupal\libraries\ExternalLibrary\Local\LocalLibraryInterface::getLocalPath()

File

src/ExternalLibrary/Local/LocalLibraryTrait.php, line 91

Class

LocalLibraryTrait
Provides a trait for local libraries utilizing a stream wrapper.

Namespace

Drupal\libraries\ExternalLibrary\Local

Code

public function setLocalPath($path) {
  $this->installed = TRUE;
  $this->localPath = (string) $path;
  assert($this->localPath !== "");
  assert($this->localPath[0] !== "/");
}