1.20.x config_database_storage.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

drivers/config_database/config_database_storage.inc, line 265

Class

ConfigDatabaseStorage
Defines the database storage controller.

Code

public function getModifiedTime($name) {
  $data = db_select($this->table, 'c', array('target' => $this->database))
    ->fields('c', 'ctime')
    ->condition('c.name', $name)
    ->execute()
    ->fetchField();

  return empty($data) ? FALSE : $data;
}