Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!8310
added test and fix
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
added test and fix
issue/drupal-3334045:3334045-drupalcoretemplateattribute-doesnt-support
into
11.x
Overview
15
Commits
11
Pipelines
11
Changes
2
Closed
Yash Rode
requested to merge
issue/drupal-3334045:3334045-drupalcoretemplateattribute-doesnt-support
into
11.x
1 year ago
Overview
15
Commits
11
Pipelines
11
Changes
2
Expand
Closes
#3334045
0
0
Merge request reports
Compare
11.x
version 10
4b5a3bf5
10 months ago
version 9
5cdc07e1
10 months ago
version 8
25ed9383
1 year ago
version 7
500eb1fd
1 year ago
version 6
61c9bd80
1 year ago
version 5
69a0232a
1 year ago
version 4
df3fb42a
1 year ago
version 3
dfa12b71
1 year ago
version 2
9ca0153c
1 year ago
version 1
3acf4b09
1 year ago
11.x (base)
and
latest version
latest version
111a4526
11 commits,
10 months ago
version 10
4b5a3bf5
10 commits,
10 months ago
version 9
5cdc07e1
8 commits,
10 months ago
version 8
25ed9383
7 commits,
1 year ago
version 7
500eb1fd
7 commits,
1 year ago
version 6
61c9bd80
6 commits,
1 year ago
version 5
69a0232a
5 commits,
1 year ago
version 4
df3fb42a
4 commits,
1 year ago
version 3
dfa12b71
3 commits,
1 year ago
version 2
9ca0153c
2 commits,
1 year ago
version 1
3acf4b09
1 commit,
1 year ago
2 files
+
13
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Template/Attribute.php
+
7
−
0
Options
@@ -94,6 +94,13 @@ public function offsetGet($name): mixed {
if
(
isset
(
$this
->
storage
[
$name
]))
{
return
$this
->
storage
[
$name
];
}
// The 'class' array key is expected to be itself an array, and therefore
// can be accessed using array append syntax before it has been initialized.
if
(
$name
===
'class'
)
{
// Initialize the class attribute as an empty array if not set.
$this
->
offsetSet
(
'class'
,
[]);
return
$this
->
storage
[
'class'
];
}
return
NULL
;
}
Loading