You are here

entity_background_test.features.field_instance.inc in Entity background 7

File

tests/entity_background_test/entity_background_test.features.field_instance.inc
View source
<?php

/**
 * @file
 * entity_background_test.features.field_instance.inc
 */

/**
 * Implements hook_field_default_field_instances().
 */
function entity_background_test_field_default_field_instances() {
  $field_instances = array();

  // Exported field_instance: 'node-eb_test_landing_page-field_eb_test_paragraphs'
  $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,
    ),
  );

  // Exported field_instance: 'paragraphs_item-eb_content_test-field_eb_test_body'
  $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,
    ),
  );

  // Translatables
  // Included for use with string extractors like potx.
  t('Body');
  t('Paragraphs');
  return $field_instances;
}

Functions

Namesort descending Description
entity_background_test_field_default_field_instances Implements hook_field_default_field_instances().