function profile_update_8006 in Profile 8
Install the `data` field.
File
- ./
profile.install, line 132 - Install, update and uninstall functions for the profile module.
Code
function profile_update_8006() {
$storage_definition = BaseFieldDefinition::create('map')
->setLabel(t('Data'))
->setDescription(t('A serialized array of additional data.'))
->setRevisionable(TRUE);
$update_manager = \Drupal::entityDefinitionUpdateManager();
$update_manager
->installFieldStorageDefinition('data', 'profile', 'profile', $storage_definition);
}