You are here

protected function ConfigInstaller::getDefaultConfigDirectory in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/ConfigInstaller.php \Drupal\Core\Config\ConfigInstaller::getDefaultConfigDirectory()

Gets an extension's default configuration directory.

Parameters

string $type: Type of extension to install.

string $name: Name of extension to install.

Return value

string The extension's default configuration directory.

2 calls to ConfigInstaller::getDefaultConfigDirectory()
ConfigInstaller::checkConfigurationToInstall in core/lib/Drupal/Core/Config/ConfigInstaller.php
Checks the configuration that will be installed for an extension.
ConfigInstaller::installDefaultConfig in core/lib/Drupal/Core/Config/ConfigInstaller.php
Installs the default configuration of a given extension.

File

core/lib/Drupal/Core/Config/ConfigInstaller.php, line 599
Contains \Drupal\Core\Config\ConfigInstaller.

Class

ConfigInstaller

Namespace

Drupal\Core\Config

Code

protected function getDefaultConfigDirectory($type, $name) {
  return $this
    ->drupalGetPath($type, $name) . '/' . InstallStorage::CONFIG_INSTALL_DIRECTORY;
}