View source
<?php
function entity_background_test_field_default_field_instances() {
$field_instances = array();
$field_instances['node-eb_test_landing_page-field_eb_test_paragraphs'] = array(
'bundle' => 'eb_test_landing_page',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'paragraphs',
'settings' => array(
'view_mode' => 'full',
),
'type' => 'paragraphs_view',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_eb_test_paragraphs',
'label' => 'Paragraphs',
'required' => 0,
'settings' => array(
'add_mode' => 'select',
'allowed_bundles' => array(
'eb_content_test' => 'eb_content_test',
),
'default_edit_mode' => 'open',
'title' => 'Paragraph',
'title_multiple' => 'Paragraphs',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'paragraphs',
'settings' => array(),
'type' => 'paragraphs_embed',
'weight' => 1,
),
);
$field_instances['paragraphs_item-eb_content_test-field_eb_test_body'] = array(
'bundle' => 'eb_content_test',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
'paragraphs_editor_preview' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'paragraphs_item',
'field_name' => 'field_eb_test_body',
'label' => 'Body',
'required' => FALSE,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'text',
'settings' => array(
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 1,
),
);
t('Body');
t('Paragraphs');
return $field_instances;
}