function bibcite_entity_update_8017 in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_entity/bibcite_entity.install \bibcite_entity_update_8017()
Make Contributor entity type fieldable.
File
- modules/
bibcite_entity/ bibcite_entity.install, line 693 - Module installation hooks implementation.
Code
function bibcite_entity_update_8017() {
$definition_update_manager = \Drupal::entityDefinitionUpdateManager();
$entity_type = $definition_update_manager
->getEntityType('bibcite_contributor');
$entity_type
->set('field_ui_base_route', 'bibcite_entity.contributor.settings');
$definition_update_manager
->updateEntityType($entity_type);
}