You are here

function smart_date_recur_update_8302 in Smart Date 3.3.x

Same name and namespace in other branches
  1. 3.4.x modules/smart_date_recur/smart_date_recur.install \smart_date_recur_update_8302()

Adds "uuid" base field in smart_date_rule entity.

File

modules/smart_date_recur/smart_date_recur.install, line 40

Code

function smart_date_recur_update_8302() {
  $field_storage_definition = BaseFieldDefinition::create('uuid')
    ->setLabel(t('UUID'))
    ->setDescription(t('The UUID of the SmartDateRule entity.'))
    ->setReadOnly(TRUE);
  \Drupal::entityDefinitionUpdateManager()
    ->installFieldStorageDefinition('uuid', 'smart_date_rule', 'smart_date_rule', $field_storage_definition);
}