Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
commerce-3422636
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
commerce-3422636
Commits
ea3072f3
Commit
ea3072f3
authored
7 years ago
by
Bojan Živanović
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2905967
by bojanz: Add default classes to checkout pane wrappers
parent
5018c694
No related branches found
Branches containing commit
Tags
5.x-1.0-alpha2
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowWithPanesBase.php
+6
-0
6 additions, 0 deletions
...lugin/Commerce/CheckoutFlow/CheckoutFlowWithPanesBase.php
with
6 additions
and
0 deletions
modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowWithPanesBase.php
+
6
−
0
View file @
ea3072f3
...
...
@@ -547,6 +547,9 @@ abstract class CheckoutFlowWithPanesBase extends CheckoutFlowBase implements Che
'#parents'
=>
[
$pane_id
],
'#type'
=>
$pane
->
getWrapperElement
(),
'#title'
=>
$pane
->
getDisplayLabel
(),
'#attributes'
=>
[
'class'
=>
[
'checkout-pane'
,
'checkout-pane-'
.
str_replace
(
'_'
,
'-'
,
$pane_id
)],
],
];
$form
[
$pane_id
]
=
$pane
->
buildPaneForm
(
$form
[
$pane_id
],
$form_state
,
$form
);
}
...
...
@@ -560,6 +563,9 @@ abstract class CheckoutFlowWithPanesBase extends CheckoutFlowBase implements Che
'#parents'
=>
[
'sidebar'
,
$pane_id
],
'#type'
=>
$pane
->
getWrapperElement
(),
'#title'
=>
$pane
->
getDisplayLabel
(),
'#attributes'
=>
[
'class'
=>
[
'checkout-pane'
,
'checkout-pane-'
.
str_replace
(
'_'
,
'-'
,
$pane_id
)],
],
];
$form
[
'sidebar'
][
$pane_id
]
=
$pane
->
buildPaneForm
(
$form
[
'sidebar'
][
$pane_id
],
$form_state
,
$form
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment