clearCachedDefinitions(); \Drupal::entityDefinitionUpdateManager() ->installEntityType(\Drupal::entityTypeManager()->getDefinition('oc_case_provision')); } } function opencase_cases_update_8026() { $storage_definition = \Drupal\Core\Field\BaseFieldDefinition::create('entity_reference') ->setLabel(t('Role')) ->setSetting('target_type', 'taxonomy_term') ->setSetting('handler_settings', ['target_bundles' => ['oc_case_provider_role' => 'oc_case_provider_role']]) ->setSetting('handler', 'default') ->setTranslatable(TRUE) ->setCardinality(1) ->setDisplayConfigurable("view", true) ->setDisplayConfigurable("form", true) ->setRequired(FALSE); \Drupal::entityDefinitionUpdateManager() ->installFieldStorageDefinition('oc_case_provider_role', 'oc_case_provision', 'oc_case_provision', $storage_definition); }