Commit cbd2730d authored by Project Update Bot's avatar Project Update Bot Committed by Vladimir Roudakov
Browse files

Issue #3299353 by ressa, Project Update Bot, VladimirAus: Automated Drupal 10 compatibility fixes

parent 688a219c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ class StyleguideController extends ControllerBase {
   * Returns a render-able array for a test page.
   */
  public function render() {
    $styleguide = file_get_contents(drupal_get_path('module', 'twbstools') . '/resources/cheatsheet/index.html');
    $styleguide = file_get_contents(\Drupal::service('extension.list.module')->getPath('twbstools') . '/resources/cheatsheet/index.html');
    $styleguide = str_replace('https://getbootstrap.com/docs/5.1/examples/cheatsheet/', '', $styleguide);
    $html_dom = Html::load($styleguide);
    $xpath = new \DOMXPath($html_dom);
+1 −1
Original line number Diff line number Diff line
name: Bootstrap tools
type: module
description: 'Companion module for [Bootstrap 5 theme] to provide better content editor and developer experience.'
core_version_requirement: ^9
core_version_requirement: ^9 | ^10