class ProfileExtensionList

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Extension/ProfileExtensionList.php \Drupal\Core\Extension\ProfileExtensionList
  2. 10 core/lib/Drupal/Core/Extension/ProfileExtensionList.php \Drupal\Core\Extension\ProfileExtensionList
  3. 8.9.x core/lib/Drupal/Core/Extension/ProfileExtensionList.php \Drupal\Core\Extension\ProfileExtensionList

Provides a list of installation profiles.

@internal This class is not yet stable and therefore there are no guarantees that the internal implementations including constructor signature and protected properties / methods will not change over time. This will be reviewed after https://www.drupal.org/project/drupal/issues/2940481

Hierarchy

Expanded class hierarchy of ProfileExtensionList

7 files declare their use of ProfileExtensionList
InstallerDependenciesResolutionTest.php in core/modules/system/tests/src/Kernel/Installer/InstallerDependenciesResolutionTest.php
InstallerLanguageTest.php in core/tests/Drupal/KernelTests/Core/Installer/InstallerLanguageTest.php
LegacyExtensionPathResolverTest.php in core/tests/Drupal/KernelTests/Core/Extension/LegacyExtensionPathResolverTest.php
LibrariesDirectoryFileFinder.php in core/lib/Drupal/Core/Asset/LibrariesDirectoryFileFinder.php
LibrariesDirectoryFileFinderTest.php in core/tests/Drupal/Tests/Core/Asset/LibrariesDirectoryFileFinderTest.php

... See full list

1 string reference to 'ProfileExtensionList'
core.services.yml in core/core.services.yml
core/core.services.yml
1 service uses ProfileExtensionList
extension.list.profile in core/core.services.yml
Drupal\Core\Extension\ProfileExtensionList

File

core/lib/Drupal/Core/Extension/ProfileExtensionList.php, line 14

Namespace

Drupal\Core\Extension
View source
class ProfileExtensionList extends ExtensionList {
  
  /**
   * {@inheritdoc}
   */
  protected $defaults = [
    'dependencies' => [],
    'install' => [],
    'description' => '',
    'package' => 'Other',
    'version' => NULL,
    'php' => \Drupal::MINIMUM_PHP,
  ];
  
  /**
   * {@inheritdoc}
   */
  protected function getInstalledExtensionNames() {
    return [
      $this->installProfile,
    ];
  }

}

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