You are here

public function ExtensionListTrait::setPathname in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Installer/ExtensionListTrait.php \Drupal\Core\Installer\ExtensionListTrait::setPathname()
  2. 9 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\Installer

Code

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;
}