You are here

function paragraphs_entity_base_field_info_alter in Paragraphs 8

Implements hook_entity_base_field_info_alter().

File

./paragraphs.module, line 419
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']);
  }
}