public function StorageInterface::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.

4 methods override StorageInterface::listAll()
CachedStorage::listAll in drupal/core/lib/Drupal/Core/Config/CachedStorage.php
Implements Drupal\Core\Config\StorageInterface::listAll().
DatabaseStorage::listAll in drupal/core/lib/Drupal/Core/Config/DatabaseStorage.php
Implements Drupal\Core\Config\StorageInterface::listAll().
FileStorage::listAll in drupal/core/lib/Drupal/Core/Config/FileStorage.php
Implements Drupal\Core\Config\StorageInterface::listAll().
NullStorage::listAll in drupal/core/lib/Drupal/Core/Config/NullStorage.php
Implements Drupal\Core\Config\StorageInterface::listAll().

File

drupal/core/lib/Drupal/Core/Config/StorageInterface.php, line 123
Definition of Drupal\Core\Config\StorageInterface.

Class

StorageInterface
Defines an interface for configuration storage controllers.

Namespace

Drupal\Core\Config

Code

public function listAll($prefix = '');