function _slick_schema in Slick Carousel 7.3
Same name and namespace in other branches
- 7.2 slick.install \_slick_schema()
Returns schema for slick.
1 call to _slick_schema()
- slick_schema in ./
slick.install - Implements hook_schema().
File
- ./
slick.install, line 67 - Installation actions for Slick.
Code
function _slick_schema() {
return [
'description' => 'Store optionsets for slick instances.',
'export' => [
'object' => 'Drupal\\slick\\Entity\\Slick',
'key' => 'name',
'key name' => 'Optionset',
'primary key' => 'name',
'identifier' => 'optionset',
'admin_title' => 'label',
'default hook' => 'slick_optionsets',
'bulk export' => TRUE,
'api' => [
'owner' => 'slick',
'api' => 'slick_optionset',
'minimum_version' => 1,
'current_version' => 3,
],
],
'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,
],
'breakpoints' => [
'description' => 'The number of defined breakpoints.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
],
'skin' => [
'description' => 'The slick skin.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
],
'collection' => [
'description' => 'The optionset collection.',
'type' => 'varchar',
'length' => 64,
'not null' => FALSE,
],
'optimized' => [
'type' => 'int',
'description' => 'If optimized',
'not null' => TRUE,
'default' => 0,
],
'options' => [
'description' => 'The options array.',
'type' => 'blob',
'size' => 'big',
'serialize' => TRUE,
],
],
'primary key' => [
'name',
],
];
}