You are here

function _elevatezoomplus_schema in ElevateZoom Plus 7

Returns schema for elevatezoomplus.

1 call to _elevatezoomplus_schema()
elevatezoomplus_schema in ./elevatezoomplus.install
Implements hook_schema().

File

./elevatezoomplus.install, line 39
Installation actions for ElevateZoomPlus.

Code

function _elevatezoomplus_schema() {
  return [
    'description' => 'Store optionsets for elevatezoomplus instances.',
    'export' => [
      'object' => 'Drupal\\elevatezoomplus\\Entity\\ElevateZoomPlus',
      'key' => 'name',
      'key name' => 'Optionset',
      'primary key' => 'name',
      'identifier' => 'optionset',
      'admin_title' => 'label',
      'default hook' => 'elevatezoomplus_optionsets',
      'bulk export' => TRUE,
      'api' => [
        'owner' => 'elevatezoomplus',
        'api' => 'elevatezoomplus_optionset',
        'minimum_version' => 1,
        'current_version' => 1,
      ],
    ],
    'fields' => [
      'name' => [
        'description' => 'The machine-readable option set name.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ],
      'label' => [
        'description' => 'The human-readable label for this option set.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ],
      'options' => [
        'description' => 'The options array.',
        'type' => 'blob',
        'size' => 'big',
        'serialize' => TRUE,
      ],
    ],
    'primary key' => [
      'name',
    ],
  ];
}