public function Configuration::startTracking in Configuration Management 7.2
Save a configuration object into the configuration_tracked table.
2 calls to Configuration::startTracking()
- Configuration::export in lib/
Drupal/ configuration/ Config/ Configuration.php - Configuration::import in lib/
Drupal/ configuration/ Config/ Configuration.php - Load a configuration from the DataStore and save it into the ActiveStore. This function is called from iterator().
File
- lib/
Drupal/ configuration/ Config/ Configuration.php, line 245 - Definition of Drupal\configuration\Config\Configuration.
Class
Namespace
Drupal\configuration\ConfigCode
public function startTracking() {
db_delete('configuration_tracked')
->condition('component', $this
->getComponent())
->condition('identifier', $this
->getIdentifier())
->execute();
$fields = array(
'component' => $this
->getComponent(),
'identifier' => $this
->getIdentifier(),
'hash' => $this
->getHash(),
'file' => $this
->getFileName(),
);
db_insert('configuration_tracked')
->fields($fields)
->execute();
}