You are here

protected function Registry::getPath in Drupal 9

Same name and namespace in other branches
  1. 8 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

Deprecated

in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Extension\ExtensionList::getPath() instead.

See also

https://www.drupal.org/node/2940438

File

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

Class

Registry
Defines the theme registry service.

Namespace

Drupal\Core\Theme

Code

protected function getPath($module) {
  @trigger_error(__METHOD__ . ' is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \\Drupal\\Core\\Extension\\ExtensionList::getPath() instead. See https://www.drupal.org/node/2940438', E_USER_DEPRECATED);
  return $this->moduleList
    ->getPath($module);
}