public function Configuration::checkDependencies in Configuration Management 7.2
Returns TRUE if all the dependencies of this configurations are met. Returns FALSE if a module or a dependency is required by this configuration is not enabled.
File
- lib/
Drupal/ configuration/ Config/ Configuration.php, line 679 - Definition of Drupal\configuration\Config\Configuration.
Class
Namespace
Drupal\configuration\ConfigCode
public function checkDependencies() {
foreach ($this->required_modules as $module) {
if (!module_exists($module)) {
return FALSE;
}
}
foreach ($this
->getDependencies() as $dependency) {
// First, look for the dependency in the tracked table.
$exists = db_select('configuration_tracked', 'ct')
->fields('ct', array(
'identifier',
))
->condition('component', $this
->getComponent())
->condition('identifier', $this
->getIdentifier())
->fetchField();
if (!$exists) {
// If not exists in the database, look into the config:// directory.
if (!$this
->configFileExists()) {
return FALSE;
}
}
}
}