function gridstack_update_8217 in GridStack 8.2
Updated GridStack variant entity type schema.
File
- ./
gridstack.install, line 373 - Installation actions for GridStack.
Code
function gridstack_update_8217() {
\Drupal::entityDefinitionUpdateManager()
->installEntityType(new ConfigEntityType([
'id' => 'gridstack_variant',
'label' => new TranslatableMarkup('GridStack variant'),
'config_prefix' => 'variant',
'admin_permission' => 'administer gridstack variant',
'list_path' => 'admin/structure/gridstack/variant',
'entity_keys' => [
'id' => 'name',
'label' => 'label',
'status' => 'status',
'weight' => 'weight',
'source' => 'source',
],
'config_export' => [
'id',
'name',
'label',
'description',
'status',
'weight',
'source',
'options',
],
]));
}