1.20.x config_file_storage.inc public ConfigFileStorage::exists($name)

Returns whether a configuration object exists.

Parameters

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

Return value

bool: TRUE if the configuration object exists, FALSE otherwise.

Overrides ConfigStorageInterface::exists

File

drivers/config_file/config_file_storage.inc, line 90

Class

ConfigFileStorage
Defines the file storage controller.

Code

public function exists($name) {
  return file_exists($this->getFilePath($name));
}