You are here

function commerce_invoice_update_8200 in Commerce Invoice 8.2

Mark the invoice owner field as non translatable.

File

./commerce_invoice.install, line 33
Contains install and update functions for Commerce Invoice.

Code

function commerce_invoice_update_8200() {
  $definition_update_manager = \Drupal::entityDefinitionUpdateManager();
  $field_definition = $definition_update_manager
    ->getFieldStorageDefinition('uid', 'commerce_invoice');
  $field_definition
    ->setTranslatable(FALSE);
  $definition_update_manager
    ->updateFieldStorageDefinition($field_definition);
}