You are here

protected function ConfigInstaller::drupalGetPath in Drupal 8

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

4 calls to ConfigInstaller::drupalGetPath()
ConfigInstaller::getDefaultConfigDirectory in core/lib/Drupal/Core/Config/ConfigInstaller.php
Gets an extension's default configuration directory.
ConfigInstaller::getProfileStorages in core/lib/Drupal/Core/Config/ConfigInstaller.php
Gets the profile storage to use to check for profile overrides.
ConfigInstaller::installDefaultConfig in core/lib/Drupal/Core/Config/ConfigInstaller.php
Installs the default configuration of a given extension.
ConfigInstaller::installOptionalConfig in core/lib/Drupal/Core/Config/ConfigInstaller.php
Installs optional configuration.

File

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

Class

ConfigInstaller

Namespace

Drupal\Core\Config

Code

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