You are here

function bibcite_entity_update_8018 in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/bibcite_entity.install \bibcite_entity_update_8018()

Make Keyword entity type fieldable.

File

modules/bibcite_entity/bibcite_entity.install, line 703
Module installation hooks implementation.

Code

function bibcite_entity_update_8018() {
  $definition_update_manager = \Drupal::entityDefinitionUpdateManager();
  $entity_type = $definition_update_manager
    ->getEntityType('bibcite_keyword');
  $entity_type
    ->set('field_ui_base_route', 'bibcite_entity.keyword.settings');
  $definition_update_manager
    ->updateEntityType($entity_type);
}