protected function ConfigInstaller::drupalGetPath in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/ConfigInstaller.php \Drupal\Core\Config\ConfigInstaller::drupalGetPath()
Wrapper for drupal_get_path().
Parameters
$type: The type of the item; one of 'core', 'profile', 'module', 'theme', or 'theme_engine'.
$name: The name of the item for which the path is requested. Ignored for $type 'core'.
Return value
string The path to the requested item or an empty string if the item is not found.
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/ Config/ ConfigInstaller.php, line 734
Class
Namespace
Drupal\Core\ConfigCode
protected function drupalGetPath($type, $name) {
@trigger_error(__METHOD__ . ' is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \\Drupal\\Core\\Extension\\ExtensionPathResolver::getPath() instead. See https://www.drupal.org/node/2940438', E_USER_DEPRECATED);
return $this->extensionPathResolver
->getPath($type, $name);
}