public function EntityApiConfiguration::findRequiredModules in Configuration Management 7.2
Overrides Drupal\configuration\Config\Configuration::findRequiredModules().
Overrides Configuration::findRequiredModules
File
- lib/
Drupal/ configuration/ Config/ EntityApiConfiguration.php, line 125 - Definition of Drupal\configuration\Config\EntityApiConfiguration.
Class
Namespace
Drupal\configuration\ConfigCode
public function findRequiredModules() {
$this
->addToModules('entity');
$entity_info = entity_get_info($this
->getComponent());
$entity = $this
->getData();
if (!empty($entity->dependencies)) {
foreach ($entity->dependencies as $dependency) {
$this
->addToModules($dependency);
}
}
if ($entity_info) {
$this
->addToModules($entity_info['module']);
}
}