trait LibraryIdAccessorTrait in Libraries API 8.3
Provides a trait for classes giving access to a library ID.
Hierarchy
- trait \Drupal\libraries\ExternalLibrary\Utility\LibraryIdAccessorTrait
2 files declare their use of LibraryIdAccessorTrait
- LibraryDefinitionNotFoundException.php in src/
ExternalLibrary/ Exception/ LibraryDefinitionNotFoundException.php - LibraryTypeNotFoundException.php in src/
ExternalLibrary/ Exception/ LibraryTypeNotFoundException.php
File
- src/
ExternalLibrary/ Utility/ LibraryIdAccessorTrait.php, line 8
Namespace
Drupal\libraries\ExternalLibrary\UtilityView source
trait LibraryIdAccessorTrait {
/**
* The ID of the library.
*
* @var string
*/
protected $libraryId;
/**
* Returns the ID of the library.
*
* @return string
* The library ID.
*/
public function getLibraryId() {
return $this->libraryId;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LibraryIdAccessorTrait:: |
protected | property | The ID of the library. | |
LibraryIdAccessorTrait:: |
public | function | Returns the ID of the library. |