W3cubDocs

/Drupal 8

protected function ConfigInstaller::drupalGetPath

protected ConfigInstaller::drupalGetPath($type, $name)

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.

File

core/lib/Drupal/Core/Config/ConfigInstaller.php, line 630

Class

ConfigInstaller

Namespace

Drupal\Core\Config

Code

protected function drupalGetPath($type, $name) {
  return drupal_get_path($type, $name);
}

© 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!Config!ConfigInstaller.php/function/ConfigInstaller::drupalGetPath/8.1.x