Commit 2aac5f54 authored by Mahmoud Zayed's avatar Mahmoud Zayed
Browse files

Issue #3296679 by Project Update Bot, mahmoud-zayed: Drupal 10 compatibility fixes.

parent 58959f62
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
name: 'Bootstrap Layout Builder'
description: 'Add Bootstrap Grid support to Layout Builder module.'
type: module
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^9.3 || ^10
configure: bootstrap_layout_builder.settings
package: 'Layout Builder'
dependencies:
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ use Drupal\Core\Field\BaseFieldDefinition;
 * Creates the new Bootstrap Layout Builder settings.
 */
function bootstrap_layout_builder_update_8001() {
  $path = drupal_get_path('module', 'bootstrap_layout_builder') . '/config/install';
  $path = \Drupal::service('extension.list.module')->getPath('bootstrap_layout_builder') . '/config/install';
  $source = new FileStorage($path);
  $config_name = 'bootstrap_layout_builder.settings';

+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
  "license": "GPL-2.0+",
  "description": "Add Bootstrap Grid support to Layout Builder module.",
  "require": {
      "drupal/core": "^8.7.7 || ^9",
      "drupal/bootstrap_styles": "^1.0"
    "drupal/bootstrap_styles": "^1.0",
    "drupal/core": "^9.3 || ^10"
  }
}
+1 −1
Original line number Diff line number Diff line
@@ -354,7 +354,7 @@ class BootstrapLayout extends LayoutDefault implements ContainerFactoryPluginInt
          'title' => $tab['title'],
          'target' => $tab['machine_name'],
          'active' => isset($tab['active']) && $tab['active'] == TRUE ? 'active' : '',
          'icon' => drupal_get_path('module', 'bootstrap_styles') . '/images/ui/' . ($tab['icon'] ? $tab['icon'] : 'default.svg'),
          'icon' => \Drupal::service('extension.list.module')->getPath('bootstrap_styles') . '/images/ui/' . ($tab['icon'] ? $tab['icon'] : 'default.svg'),
        ],
      ];