<?php
/**
 * @file
 * corpus_structures_et_contenus.ds.inc
 */

/**
 * Implements hook_ds_layout_settings_info().
 */
function corpus_structures_et_contenus_ds_layout_settings_info() {
  $export = array();

  $ds_layout = new stdClass();
  $ds_layout->api_version = 1;
  $ds_layout->id = 'node|langues|default';
  $ds_layout->entity_type = 'node';
  $ds_layout->bundle = 'langues';
  $ds_layout->view_mode = 'default';
  $ds_layout->layout = 'bootstrap_7_5';
  $ds_layout->settings = array(
    'regions' => array(
      'left' => array(
        0 => 'body',
      ),
      'right' => array(
        1 => 'field_langue_type_de_langue',
        2 => 'field_langue_image',
      ),
    ),
    'fields' => array(
      'body' => 'left',
      'field_langue_type_de_langue' => 'right',
      'field_langue_image' => 'right',
    ),
    'classes' => array(),
    'wrappers' => array(
      'left' => 'div',
      'right' => 'div',
    ),
    'layout_wrapper' => 'div',
    'layout_attributes' => '',
    'layout_attributes_merge' => 1,
    'layout_link_attribute' => '',
    'layout_link_custom' => '',
  );
  $export['node|langues|default'] = $ds_layout;

  $ds_layout = new stdClass();
  $ds_layout->api_version = 1;
  $ds_layout->id = 'node|langues|full';
  $ds_layout->entity_type = 'node';
  $ds_layout->bundle = 'langues';
  $ds_layout->view_mode = 'full';
  $ds_layout->layout = 'bootstrap_6_6_stacked';
  $ds_layout->settings = array(
    'regions' => array(
      'top' => array(
        0 => 'title_field',
      ),
      'left' => array(
        1 => 'body',
      ),
      'right' => array(
        2 => 'field_langue_type_de_langue',
      ),
    ),
    'fields' => array(
      'title_field' => 'top',
      'body' => 'left',
      'field_langue_type_de_langue' => 'right',
    ),
    'classes' => array(),
    'wrappers' => array(
      'top' => 'div',
      'left' => 'div',
      'right' => 'div',
      'bottom' => 'div',
    ),
    'layout_wrapper' => 'div',
    'layout_attributes' => '',
    'layout_attributes_merge' => 1,
    'layout_link_attribute' => '',
    'layout_link_custom' => '',
  );
  $export['node|langues|full'] = $ds_layout;

  return $export;
}

/**
 * Implements hook_ds_view_modes_info().
 */
function corpus_structures_et_contenus_ds_view_modes_info() {
  $export = array();

  $ds_view_mode = new stdClass();
  $ds_view_mode->api_version = 1;
  $ds_view_mode->view_mode = 'langues_list';
  $ds_view_mode->label = 'langues-list';
  $ds_view_mode->entities = array(
    'node' => 'node',
  );
  $export['langues_list'] = $ds_view_mode;

  return $export;
}
