You are here

layout_builder_modal.install in Layout Builder Modal 8

Contains install and update functions for Layout Builder Modal.

File

layout_builder_modal.install
View source
<?php

/**
 * @file
 * Contains install and update functions for Layout Builder Modal.
 */

/**
 * Sets modal_autoresize to FALSE to preserve existing behaviour.
 */
function layout_builder_modal_update_8101() {
  $config = \Drupal::configFactory()
    ->getEditable('layout_builder_modal.settings');
  $config
    ->set('modal_autoresize', FALSE);
  $config
    ->save();
}

/**
 * Sets theme_display to 'default_theme' to preserve existing behaviour.
 */
function layout_builder_modal_update_8102() {
  $config = \Drupal::configFactory()
    ->getEditable('layout_builder_modal.settings');
  $config
    ->set('theme_display', 'default_theme');
  $config
    ->save();
}

Functions

Namesort descending Description
layout_builder_modal_update_8101 Sets modal_autoresize to FALSE to preserve existing behaviour.
layout_builder_modal_update_8102 Sets theme_display to 'default_theme' to preserve existing behaviour.