function paragraphs_entity_base_field_info_alter

Implements hook_entity_base_field_info_alter().

File

paragraphs/paragraphs.module, line 421
Contains paragraphs.module

Code

function paragraphs_entity_base_field_info_alter(&$fields, EntityTypeInterface $entity_type) {

  // Since the paragraph entity doesn't have uid fields anymore, remove the
  // content_translation_uid from the field definitions.
  if ($entity_type
    ->id() == 'paragraph' && isset($fields['content_translation_uid'])) {
    unset($fields['content_translation_uid']);
  }
}