You are here

function tmgmt_smartling_entity_base_field_info in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.2 tmgmt_smartling.module \tmgmt_smartling_entity_base_field_info()
  2. 8.3 tmgmt_smartling.module \tmgmt_smartling_entity_base_field_info()

Implements hook_entity_base_field_info().

File

./tmgmt_smartling.module, line 514
Contains

Code

function tmgmt_smartling_entity_base_field_info(EntityTypeInterface $entity_type) {
  if ($entity_type
    ->id() === 'tmgmt_job') {
    $fields['job_file_content_hash'] = BaseFieldDefinition::create('string')
      ->setLabel(t('File content hash (md5)'))
      ->setSetting('max_length', 32)
      ->setTranslatable(FALSE);
    return $fields;
  }
}