function bibcite_entity_update_8004 in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_entity/bibcite_entity.install \bibcite_entity_update_8004()
Enable "Override default properties" in reference types and enable UI overrides.
File
- modules/
bibcite_entity/ bibcite_entity.install, line 90 - Module installation hooks implementation.
Code
function bibcite_entity_update_8004() {
$config_factory = \Drupal::configFactory();
foreach ($config_factory
->listAll('bibcite_entity.bibcite_reference_type') as $config_name) {
$config = $config_factory
->getEditable($config_name);
$config
->set('override', TRUE);
$config
->save(TRUE);
}
$config = $config_factory
->getEditable('bibcite_entity.reference.settings');
$config
->set('ui_override.enable_form_override', TRUE);
$config
->set('display_override.enable_display_override', TRUE);
$config
->save();
}