You are here

function tmgmt_content_entity_builder in Translation Management Tool 8

Entity builder callback.

1 string reference to 'tmgmt_content_entity_builder'
tmgmt_content_form_field_config_edit_form_alter in sources/content/tmgmt_content.module
Implements hook_FORM_ID_alter().

File

sources/content/tmgmt_content.module, line 422
Source plugin for the Translation Management system that handles entities.

Code

function tmgmt_content_entity_builder($entity_type, FieldConfigInterface $entity, &$form, FormStateInterface $form_state) {
  $exclude_from_translation = $form_state
    ->getValue('tmgmt_content_excluded');
  $entity
    ->setThirdPartySetting('tmgmt_content', 'excluded', $exclude_from_translation);
}