You are here

protected function ConfigProviderBase::drupalGetPath in Configuration Provider 8.2

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.

2 calls to ConfigProviderBase::drupalGetPath()
ConfigProviderBase::getProfileStorages in src/Plugin/ConfigProviderBase.php
Gets the profile storage to use to check for profile overrides.
ConfigProviderOptional::addInstallableConfig in src/Plugin/ConfigProvider/ConfigProviderOptional.php
Adds configuration that is available to be installed or updated.

File

src/Plugin/ConfigProviderBase.php, line 280

Class

ConfigProviderBase
Base class for Configuration provider plugins.

Namespace

Drupal\config_provider\Plugin

Code

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