You are here

function tmgmt_update_8006 in Translation Management Tool 8

Add continuous settings configuration field.

File

./tmgmt.install, line 84
Update function for the tmgmt module.

Code

function tmgmt_update_8006() {
  $storage_definition = BaseFieldDefinition::create('map')
    ->setLabel(t('Continuous settings'))
    ->setDescription(t('Continuous sources configuration.'))
    ->setDefaultValue(array());
  \Drupal::entityDefinitionUpdateManager()
    ->installFieldStorageDefinition('continuous_settings', 'tmgmt_job', 'tmgmt', $storage_definition);
}