function bootstrap_layout_builder_update_8003 in Bootstrap Layout Builder 1.x
Same name and namespace in other branches
- 2.x bootstrap_layout_builder.install \bootstrap_layout_builder_update_8003()
Update entity definitions, necessary if notices appear on site status page.
File
- ./
bootstrap_layout_builder.install, line 36 - Installation and updating routines.
Code
function bootstrap_layout_builder_update_8003() {
$blb_breakpoint_entity_type = \Drupal::entityTypeManager()
->getDefinition('blb_breakpoint');
$blb_layout_entity_type = \Drupal::entityTypeManager()
->getDefinition('blb_layout');
$blb_layout_option_entity_type = \Drupal::entityTypeManager()
->getDefinition('blb_layout_option');
$entityUpdateManager = \Drupal::entityDefinitionUpdateManager();
$entityUpdateManager
->installEntityType($blb_breakpoint_entity_type);
$entityUpdateManager
->installEntityType($blb_layout_entity_type);
$entityUpdateManager
->installEntityType($blb_layout_option_entity_type);
}