Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment