public function FeaturesManager::detectNew in Features 8.3
Same name and namespace in other branches
- 8.4 src/FeaturesManager.php \Drupal\features\FeaturesManager::detectNew()
Determines which config has not been exported to the feature.
Typically added as an auto-detected dependency.
Parameters
\Drupal\features\Package $feature: The package array.
Return value
array The array of config items that are overridden.
Overrides FeaturesManagerInterface::detectNew
File
- src/
FeaturesManager.php, line 1312
Class
- FeaturesManager
- The FeaturesManager provides helper functions for building packages.
Namespace
Drupal\featuresCode
public function detectNew(Package $feature) {
$result = [];
foreach ($feature
->getConfig() as $name) {
$extension = $this->extensionStorages
->read($name);
if (empty($extension)) {
$result[] = $name;
}
}
return $result;
}