Skip to content
Snippets Groups Projects
Commit 4aeecab1 authored by Merlin Axel Rutz's avatar Merlin Axel Rutz
Browse files

Issue #3288264 by Carlos Romero, mkalkbrenner, Project Update Bot, icurk,...

Issue #3288264 by Carlos Romero, mkalkbrenner, Project Update Bot, icurk, geek-merlin: Automated Drupal 10 compatibility fixes
parent 1feb7274
No related branches found
No related tags found
1 merge request!2Issue #3288264: Automated Drupal 10 compatibility fixes
{
"name": "drupal/lb_tabs",
"type": "drupal-module",
"description": "Implements an anchor menu using as reference the Layout Builder sections",
"keywords": [
"Drupal"
],
"license": "GPL-2.0+",
"homepage": "https://www.drupal.org/project/lb_tabs",
"minimum-stability": "dev",
"prefer-stable": true,
"support": {
"issues": "https://www.drupal.org/project/issues/lb_tabs",
"source": "http://cgit.drupalcode.org/lb_tabs"
},
"require": {
}
}
......@@ -22,8 +22,10 @@
</div>
{% endfor %}
{# Output anything remaining #}
{% for i, contentKey in contentKeys if labelKeys[i] is not defined %}
{{ content.content_blocks[contentKey] }}
{% for i, contentKey in contentKeys %}
{% if labelKeys[i] is not defined %}
{{ content.content_blocks[contentKey] }}
{% endif %}
{% endfor %}
</div>
{% endif %}
......@@ -9,23 +9,27 @@
<div {{ attributes.addClass('lb-tabs-tabs').setAttribute('id', "#{settings.dom_id}") }}>
<div {{ region_attributes["content_blocks"] }}>
<ul>
{% for labelKey, labelBlock in content.label_blocks if labelKey|first != '#' %}
<li>
{% if inLayoutBuilder %}
<a>
{% else %}
<a href="#{{ "#{settings.dom_id}-#{loop.index}" }}">
{% endif %}
{{ labelBlock }}
</a>
</li>
{% for labelKey, labelBlock in content.label_blocks %}
{% if labelKey|first != '#' %}
<li>
{% if inLayoutBuilder %}
<a>
{% else %}
<a href="#{{ "#{settings.dom_id}-#{loop.index}" }}">
{% endif %}
{{ labelBlock }}
</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% for contentKey, contentBlock in content.content_blocks if contentKey|first != '#' %}
<div id="{{ "#{settings.dom_id}-#{loop.index}" }}">
{{ contentBlock }}
</div>
{% for contentKey, contentBlock in content.content_blocks %}
{% if contentKey|first != '#' %}
<div id="{{ "#{settings.dom_id}-#{loop.index}" }}">
{{ contentBlock }}
</div>
{% endif %}
{% endfor %}
</div>
</div>
......
name: Tabs And Accordion Layout
type: module
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^9 || ^10
package: Layout
dependencies:
- jquery_ui_tabs:jquery_ui_tabs
......
......@@ -33,7 +33,7 @@ class AdminPageTest extends BrowserTestBase {
public function testAdminPage() {
$this->drupalLogin($this->rootUser);
$this->drupalGet('admin');
$this->assertResponse(200);
$this->assertSession()->statusCodeEquals(200);
// Ensure that the test is not marked as risky because of no assertions.
// see https://gitlab.com/weitzman/drupal-test-traits/-/commit/82bf5059908f9073b3468cb7313960da72176d9a
......
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