function InstallProfileUninstallValidator::getExtensionDiscovery
Same name in other branches
- 10 core/lib/Drupal/Core/Extension/InstallProfileUninstallValidator.php \Drupal\Core\Extension\InstallProfileUninstallValidator::getExtensionDiscovery()
Gets an extension discovery object that ignores the install profile.
Return value
\Drupal\Core\Extension\ExtensionDiscovery An extension discovery object to look for extensions not in a profile directory.
File
-
core/
lib/ Drupal/ Core/ Extension/ InstallProfileUninstallValidator.php, line 81
Class
- InstallProfileUninstallValidator
- Ensures install profile can only be uninstalled if the modules are available.
Namespace
Drupal\Core\ExtensionCode
protected function getExtensionDiscovery() : ExtensionDiscovery {
if (!isset($this->noProfileExtensionDiscovery)) {
// cspell:ignore CNKDSIUSYFUISEFCB
$this->noProfileExtensionDiscovery = new ExtensionDiscovery($this->root, TRUE, [
'_does_not_exist_profile_CNKDSIUSYFUISEFCB',
], $this->sitePath);
}
return $this->noProfileExtensionDiscovery;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.