Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/PreExistingConfigException.php \Drupal\Core\Config\PreExistingConfigException::getExtension()
  2. 9 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;
}