You are here

public function InMemoryStorage::delete in Configuration Provider 8

Deletes a configuration object from the storage.

Parameters

string $name: The name of a configuration object to delete.

Return value

bool TRUE on success, FALSE otherwise.

Overrides StorageInterface::delete

File

src/InMemoryStorage.php, line 84

Class

InMemoryStorage
Provides an in memory confituration storage.

Namespace

Drupal\config_provider

Code

public function delete($name) {
  if (isset($this->config[$this->collection][$name])) {
    unset($this->config[$this->collection][$name]);
    return TRUE;
  }
  return FALSE;
}