By name:
embed:lithium\tests\cases\core\LibrariesTest::testLibraryConfigAccess(1-1)
With no parameters, to return all configuration for all libraries:
embed:lithium\tests\cases\core\LibrariesTest::testLibraryConfigAccess(22-22)
By list of names with a key to extract:
embed:lithium\tests\cases\core\LibrariesTest::testLibraryConfigAccess(34-34)
With no name, and a key to extract, to return a key/value array, where the library name is
the key, and the $key value is the value:
embed:lithium\tests\cases\core\LibrariesTest::testLibraryConfigAccess(37-37)
By containing class name:
embed:lithium\tests\cases\core\LibrariesTest::testLibraryConfigAccess(45-45)
public static get ( mixed $name = null, string $key = null ) : mixed | ||
$name | mixed | Either the name of a library added in `Libraries::add()`, an array of library names, or a fully-namespaced class name (see usage examples above). |
$key | string | Optional key name. If `$name` is set and is the name of a valid library (or an array of valid libraries), returns the given named configuration key, i.e. `'path'`, `'webroot'` or `'resources'`. |
return | mixed | A configuation array for one or more libraries, or a string value if `$key` is specified and `$name` is a string, or a library name (string) if `$name` is a fully-namespaced class name. |