function tmgmt_update_8008

Adds the translator state field.

File

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

Code

function tmgmt_update_8008() {
  $storage_definition = BaseFieldDefinition::create('string')
    ->setLabel(t('Provider specific state'));
  \Drupal::entityDefinitionUpdateManager()
    ->installFieldStorageDefinition('translator_state', 'tmgmt_job_item', 'tmgmt', $storage_definition);
}