function ExtensionListTrait::setPathname

Same name in other branches
  1. 9 core/lib/Drupal/Core/Installer/ExtensionListTrait.php \Drupal\Core\Installer\ExtensionListTrait::setPathname()
  2. 10 core/lib/Drupal/Core/Installer/ExtensionListTrait.php \Drupal\Core\Installer\ExtensionListTrait::setPathname()
  3. 11.x 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;
}

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