function ExtensionListTrait::setPathname
Same name in other branches
- 9 core/lib/Drupal/Core/Installer/ExtensionListTrait.php \Drupal\Core\Installer\ExtensionListTrait::setPathname()
- 8.9.x core/lib/Drupal/Core/Installer/ExtensionListTrait.php \Drupal\Core\Installer\ExtensionListTrait::setPathname()
- 10 core/lib/Drupal/Core/Installer/ExtensionListTrait.php \Drupal\Core\Installer\ExtensionListTrait::setPathname()
See also
\Drupal\Core\Extension\ExtensionList::setPathname()
File
-
core/
lib/ Drupal/ Core/ Installer/ ExtensionListTrait.php, line 22
Class
- ExtensionListTrait
- Provides common functionality for the extension list classes.
Namespace
Drupal\Core\InstallerCode
public function setPathname($extension_name, $pathname) {
parent::setPathname($extension_name, $pathname);
// In the early installer the container is rebuilt multiple times. Therefore
// we have to keep the added filenames across those rebuilds. This is not a
// final design, but rather just a workaround resolved at some point,
// hopefully.
// @todo Remove as part of https://drupal.org/project/drupal/issues/2934063
static::$staticAddedPathNames[$extension_name] = $pathname;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.