You are here

trait DependentLibraryTrait in Libraries API 8.3

Provides a trait for libraries that depend on other libraries.

Hierarchy

1 file declares its use of DependentLibraryTrait
LibraryBase.php in src/ExternalLibrary/LibraryBase.php

File

src/ExternalLibrary/Dependency/DependentLibraryTrait.php, line 8

Namespace

Drupal\libraries\ExternalLibrary\Dependency
View source
trait DependentLibraryTrait {

  /**
   * An array of library IDs of libraries that the library depends on.
   *
   * @return string[]
   */
  protected $dependencies;

  /**
   * Returns the libraries dependencies, if any.
   *
   * @return string[]
   *   An array of library IDs of libraries that the library depends on.
   *
   * @see \Drupal\libraries\ExternalLibrary\Dependency\DependentLibraryInterface::getDependencies()
   */
  public function getDependencies() {
    return $this->dependencies;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DependentLibraryTrait::$dependencies protected property An array of library IDs of libraries that the library depends on.
DependentLibraryTrait::getDependencies public function Returns the libraries dependencies, if any.