You are here

protected function Registry::getPath in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Theme/Registry.php \Drupal\Core\Theme\Registry::getPath()

Wraps drupal_get_path().

Parameters

string $module: The name of the item for which the path is requested.

Return value

string

1 call to Registry::getPath()
Registry::build in core/lib/Drupal/Core/Theme/Registry.php
Builds the theme registry cache.
1 method overrides Registry::getPath()
TestRegistry::getPath in core/tests/Drupal/Tests/Core/Theme/RegistryTest.php
Wraps drupal_get_path().

File

core/lib/Drupal/Core/Theme/Registry.php, line 766
Contains \Drupal\Core\Theme\Registry.

Class

Registry
Defines the theme registry service.

Namespace

Drupal\Core\Theme

Code

protected function getPath($module) {
  return drupal_get_path('module', $module);
}