a12s-1.0.0-beta7/modules/page_context/a12s_page_context.install

modules/page_context/a12s_page_context.install
<?php

/**
 * @file
 * Install, update and uninstall functions for the A12s Page Context module.
 */

/**
 * Implements hook_schema().
 */
function a12s_page_context_schema(): array {
  $schema['a12s_page_context_record'] = [
    'description' => 'Stores values for context forms.',
    'fields' => [
      'id' => [
        'description' => 'Primary Key: unique ID for a set of values.',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ],
      'config_id' => [
        'description' => 'The configuration entity ID, which represents the page context form.',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ],
      'plugin_id' => [
        'description' => 'The display plugin ID',
        'type' => 'varchar_ascii',
        'length' => 40,
        'not null' => TRUE,
        'default' => '',
      ],
      'key' => [
        'description' => 'A string identifying the context, when applicable (entity ID...).',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ],
      'data' => [
        'description' => 'The data for the current context form.',
        'type' => 'blob',
        'size' => 'big',
        'serialize' => TRUE,
      ],
      'settings' => [
        'description' => 'Extra settings for the current context form.',
        'type' => 'blob',
        'size' => 'big',
        'serialize' => TRUE,
      ],
    ],
    'primary key' => ['id'],
    'indexes' => [
      'config_id' => ['config_id'],
    ],
  ];

  return $schema;
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc