function PreExistingConfigException::getExtension

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/PreExistingConfigException.php \Drupal\Core\Config\PreExistingConfigException::getExtension()
  2. 10 core/lib/Drupal/Core/Config/PreExistingConfigException.php \Drupal\Core\Config\PreExistingConfigException::getExtension()
  3. 11.x core/lib/Drupal/Core/Config/PreExistingConfigException.php \Drupal\Core\Config\PreExistingConfigException::getExtension()

Gets the name of the extension that is being installed.

Return value

string The name of the extension that is being installed.

File

core/lib/Drupal/Core/Config/PreExistingConfigException.php, line 43

Class

PreExistingConfigException
An exception thrown if configuration with the same name already exists.

Namespace

Drupal\Core\Config

Code

public function getExtension() {
    return $this->extension;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.