You are here

trait LibraryIdAccessorTrait in Libraries API 8.3

Provides a trait for classes giving access to a library ID.

Hierarchy

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\Utility
View 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

Namesort descending Modifiers Type Description Overrides
LibraryIdAccessorTrait::$libraryId protected property The ID of the library.
LibraryIdAccessorTrait::getLibraryId public function Returns the ID of the library.