class ProfileExtensionList in Drupal 9
Same name and namespace in other branches
- 8 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
- class \Drupal\Core\Extension\ExtensionList
- class \Drupal\Core\Extension\ProfileExtensionList
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
1 string reference to 'ProfileExtensionList'
- core.services.yml in core/
core.services.yml - core/core.services.yml
1 service uses ProfileExtensionList
File
- core/
lib/ Drupal/ Core/ Extension/ ProfileExtensionList.php, line 14
Namespace
Drupal\Core\ExtensionView 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,
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExtensionList:: |
protected | property | A list of extension folder names directly added in code (not discovered). | |
ExtensionList:: |
protected | property | The cache. | |
ExtensionList:: |
protected | property | Static caching for extension info. | |
ExtensionList:: |
protected | property | The cached extensions. | |
ExtensionList:: |
protected | property | The info parser. | |
ExtensionList:: |
protected | property | The install profile used by the site. | |
ExtensionList:: |
protected | property | The module handler. | |
ExtensionList:: |
protected | property | A list of extension folder names keyed by extension name. | |
ExtensionList:: |
protected | property | The app root. | |
ExtensionList:: |
protected | property | The state store. | |
ExtensionList:: |
protected | property | The type of the extension: "module", "theme" or "profile". | |
ExtensionList:: |
public | function | Tests the compatibility of an extension. | |
ExtensionList:: |
protected | function | Creates the info value for an extension object. | 1 |
ExtensionList:: |
protected | function | Builds the list of extensions. | 2 |
ExtensionList:: |
protected | function | Scans the available extensions. | 1 |
ExtensionList:: |
public | function | Determines if an extension exists in the filesystem. | |
ExtensionList:: |
public | function | Returns a single extension. | |
ExtensionList:: |
public | function | Returns an array of info files information of available extensions. | |
ExtensionList:: |
public | function | Returns an array of info files information of installed extensions. | |
ExtensionList:: |
protected | function | Returns the extension discovery. | 3 |
ExtensionList:: |
public | function | Returns information about a specified extension. | |
ExtensionList:: |
protected | function | Returns the extension info cache ID. | |
ExtensionList:: |
public | function | Returns all available extensions. | |
ExtensionList:: |
protected | function | Returns the extension list cache ID. | |
ExtensionList:: |
public | function | Returns the human-readable name of the extension. | |
ExtensionList:: |
public | function | Gets the path to an extension of a specific type (module, theme, etc.). | |
ExtensionList:: |
public | function | Gets the info file path for an extension. | |
ExtensionList:: |
public | function | Returns a list of extension file paths keyed by machine name. | |
ExtensionList:: |
protected | function | Returns the extension filenames cache ID. | |
ExtensionList:: |
protected | function | Generates the information from .info.yml files for extensions of this type. | |
ExtensionList:: |
protected | function | Generates a sorted list of .info.yml file locations for all extensions. | |
ExtensionList:: |
public | function | Resets the stored extension list. | 1 |
ExtensionList:: |
public | function | Sets the pathname for an extension. | |
ExtensionList:: |
public static | function | Array sorting callback; sorts extensions by their name. | |
ExtensionList:: |
public | function | Constructs a new instance. | 2 |
ProfileExtensionList:: |
protected | property |
Default values to be merged into *.info.yml file arrays. Overrides ExtensionList:: |
|
ProfileExtensionList:: |
protected | function |
Returns a list of machine names of installed extensions. Overrides ExtensionList:: |