You are here

public function FeaturesManager::getConfigCollection in Features 8.3

Same name and namespace in other branches
  1. 8.4 src/FeaturesManager.php \Drupal\features\FeaturesManager::getConfigCollection()

Gets an array of site configuration.

Parameters

bool $reset: If TRUE, recalculate the configuration (undo all assignment methods).

Return value

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

  • 'name': prefixed configuration item name.
  • 'name_short': configuration item name without prefix.
  • 'label': human readable name of configuration item.
  • 'type': type of configuration.
  • 'data': the contents of the configuration item in exported format.
  • 'dependents': array of names of dependent configuration items.
  • 'subdirectory': feature subdirectory to export item to.
  • 'package': machine name of a package the configuration is assigned to.
  • 'extension_provided': whether the configuration is provided by an extension.
  • 'package_excluded': array of package names that this item should be excluded from.

Overrides FeaturesManagerInterface::getConfigCollection

8 calls to FeaturesManager::getConfigCollection()
FeaturesManager::addPackageFiles in src/FeaturesManager.php
Generates and adds files to a given package or profile.
FeaturesManager::assignConfigByPattern in src/FeaturesManager.php
Assigns configuration items with names matching given strings to given packages.
FeaturesManager::assignConfigDependents in src/FeaturesManager.php
For given configuration items, assigns any dependent configuration to the same package.
FeaturesManager::assignConfigPackage in src/FeaturesManager.php
Assigns a set of configuration items to a given package or profile.
FeaturesManager::assignInterPackageDependencies in src/FeaturesManager.php
Assigns dependencies between packages based on configuration dependencies.

... See full list

File

src/FeaturesManager.php, line 249

Class

FeaturesManager
The FeaturesManager provides helper functions for building packages.

Namespace

Drupal\features

Code

public function getConfigCollection($reset = FALSE) {
  $this
    ->initConfigCollection($reset);
  return $this->configCollection;
}