1 config.inc | public ConfigDatabaseStorage::getModifiedTime($name) |
Returns a timestamp indicating the last time a configuration was modified.
Parameters
string $name: The name of a configuration object on which the time will be checked.
Return value
int|false: A timestamp indicating the last time the configuration was modified or FALSE if the named configuration object doesn't exist.
Overrides ConfigStorageInterface::getModifiedTime
File
- core/
includes/ config.inc, line 1491 - This is the API for configuration storage.
Class
- ConfigDatabaseStorage
- Defines the database storage controller.
Code
public function getModifiedTime($name) {
$data = db_select($this->table, 'c', array('target' => $this->database))
->fields('c', array('changed'))
->condition('c.name', $name)
->execute()
->fetchField();
return empty($data) ? FALSE : $data;
}