You are here

public function FeaturesManagerInterface::getPackages in Features 8.4

Same name and namespace in other branches
  1. 8.3 src/FeaturesManagerInterface.php \Drupal\features\FeaturesManagerInterface::getPackages()

Gets an array of packages.

Return value

\Drupal\features\Package[] An array of items, each with the following keys:

  • 'machine_name': machine name of the package such as 'example_article'. 'article'.
  • 'name': human readable name of the package such as 'Example Article'.
  • 'description': description of the package.
  • 'type': type of Drupal project ('module').
  • 'coreVersionRequirement': Drupal core compatibility ('^8.9 | ^9').
  • 'dependencies': array of module dependencies.
  • 'themes': array of names of themes to install.
  • 'config': array of names of configuration items.
  • 'status': status of the package. Valid values are:
  • 'version': version of the extension.
  • 'state': state of the extension. Valid values are:
  • 'directory': the extension's directory.
  • 'files' array of files, each having the following keys:
    • 'filename': the name of the file.
    • 'subdirectory': any subdirectory of the file within the extension directory.
    • 'string': the contents of the file.
  • 'bundle': name of the features bundle this package belongs to.
  • 'extension': \Drupal\Core\Extension\Extension object.
  • 'info': the original info array from an existing package.
  • 'configInfo': the original config of the module.

See also

\Drupal\features\FeaturesManagerInterface::setPackages()

1 method overrides FeaturesManagerInterface::getPackages()
FeaturesManager::getPackages in src/FeaturesManager.php
Gets an array of packages.

File

src/FeaturesManagerInterface.php, line 134

Class

FeaturesManagerInterface
Provides an interface for the FeaturesManager.

Namespace

Drupal\features

Code

public function getPackages();