function TestLibraryDiscoveryParser::drupalGetPath

Overrides LibraryDiscoveryParser::drupalGetPath

File

core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php, line 676

Class

TestLibraryDiscoveryParser
Wraps the tested class to mock the external dependencies.

Namespace

Drupal\Tests\Core\Asset

Code

protected function drupalGetPath($type, $name) {
    return isset($this->paths[$type][$name]) ? $this->paths[$type][$name] : NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.