function commerce_wishlist_update_8303 in Commerce Wishlist 8.3
Remove the wishlist item title.
File
- ./
commerce_wishlist.install, line 66 - Contains install and update functions for Commerce Wishlist.
Code
function commerce_wishlist_update_8303() {
$definition_update_manager = \Drupal::entityDefinitionUpdateManager();
$storage_definition = BaseFieldDefinition::create('string')
->setName('title')
->setTargetEntityTypeId('commerce_wishlist_item')
->setLabel(t('Title'))
->setDescription(t('The wishlist item title.'))
->setSettings([
'default_value' => '',
'max_length' => 512,
]);
$definition_update_manager
->uninstallFieldStorageDefinition($storage_definition);
}