W3cubDocs

/Drupal 8

protected function Registry::getPath

protected Registry::getPath($module)

Wraps drupal_get_path().

Parameters

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

Return value

string

File

core/lib/Drupal/Core/Theme/Registry.php, line 771

Class

Registry
Defines the theme registry service.

Namespace

Drupal\Core\Theme

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Theme!Registry.php/function/Registry::getPath/8.1.x