Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gin
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
gin
Commits
4367211e
Commit
4367211e
authored
6 months ago
by
Vince Tikász
Committed by
Sascha Eggenberger
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Resolve
#3486743
"Cannot opt out"
parent
40c4bd2b
No related branches found
No related tags found
1 merge request
!228
Issue #3342164: Remove implicit dependency on node module for gin content form
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/form.theme
+5
-1
5 additions, 1 deletion
includes/form.theme
with
5 additions
and
1 deletion
includes/form.theme
+
5
−
1
View file @
4367211e
...
...
@@ -62,6 +62,10 @@ function gin_form_after_build(array $form, FormStateInterface $form_state): arra
foreach
(
Element
::
children
(
$form
[
'actions'
])
as
$key
)
{
$button
=
$form
[
'actions'
][
$key
];
if
(
!
(
$button
[
'#access'
]
??
TRUE
))
{
continue
;
}
if
(
isset
(
$button
[
'#type'
])
&&
$button
[
'#type'
]
===
'submit'
)
{
$button_classes
=
isset
(
$button
[
'#attributes'
][
'class'
])
&&
is_array
(
$button
[
'#attributes'
][
'class'
])
?
$button
[
'#attributes'
][
'class'
]
:
[];
$button_type_class
=
isset
(
$button
[
'#button_type'
])
?
"button--
{
$button
[
'#button_type'
]
}
"
:
NULL
;
...
...
@@ -89,7 +93,7 @@ function gin_form_after_build(array $form, FormStateInterface $form_state): arra
];
// Add the label to the form actions array.
if
(
in_array
(
$key
,
$includes
,
TRUE
))
{
if
(
in_array
(
$key
,
$includes
,
TRUE
)
||
!
empty
(
$button
[
'#gin_action_item'
])
)
{
$form
[
'gin_sticky_actions'
][
'actions'
][
$key
]
=
$new_label
;
}
// Add to more menu.
...
...
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