public ConfigCollectionInfo::getCollectionNames($include_default = TRUE)
Gets the list of possible collection names.
Parameters
bool $include_default: (Optional) Include the default collection. Defaults to TRUE.
Return value
array The list of possible collection names.
File
- core/lib/Drupal/Core/Config/ConfigCollectionInfo.php, line 51
Class
- ConfigCollectionInfo
- Gets information on all the possible configuration collections.
Namespace
Drupal\Core\Config
Code
1 2 3 4 5 6 7 8 | public function getCollectionNames( $include_default = TRUE) { $collection_names = array_keys ( $this ->collections); sort( $collection_names ); if ( $include_default ) { array_unshift ( $collection_names , StorageInterface::DEFAULT_COLLECTION); } return $collection_names ; } |
Please login to continue.