You are here

function bootstrap_layout_builder_update_8005 in Bootstrap Layout Builder 2.x

Add 'default_breakpoints' field to 'blb_layout_option' entities.

File

./bootstrap_layout_builder.install, line 58
Installation and updating routines.

Code

function bootstrap_layout_builder_update_8005() {
  $field_storage_definition = BaseFieldDefinition::create('default_breakpoints')
    ->setLabel(t('Default Breakpoints'))
    ->setDescription(t('Breakpoints you want to make this layout option the default.'))
    ->setRevisionable(FALSE);
  \Drupal::entityDefinitionUpdateManager()
    ->installFieldStorageDefinition('default_breakpoints', 'blb_layout_option', 'bootstrap_layout_builder', $field_storage_definition);
}