public function FeaturesExtensionStorages::listAll in Features 8.4
Same name and namespace in other branches
- 8.3 src/FeaturesExtensionStorages.php \Drupal\features\FeaturesExtensionStorages::listAll()
Gets configuration object names starting with a given prefix.
Given the following configuration objects:
- node.type.article
- node.type.page
Passing the prefix 'node.type.' will return an array containing the above names.
Parameters
string $prefix: (optional) The prefix to search for. If omitted, all configuration object names that exist are returned.
Return value
array An array containing matching configuration object names.
Overrides FeaturesExtensionStoragesInterface::listAll
File
- src/
FeaturesExtensionStorages.php, line 75
Class
- FeaturesExtensionStorages
- Wraps FeaturesInstallStorage to support multiple configuration directories.
Namespace
Drupal\featuresCode
public function listAll($prefix = '') {
return array_keys($this
->listAllByDirectory($prefix));
}