Skip to content
Snippets Groups Projects
Verified Commit 2e3db915 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #2892304 by Manuel Garcia, amateescu: Introduce footer region to ContentEntityForm

parent a603e0f2
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -127,6 +127,15 @@ public function form(array $form, FormStateInterface $form_state) { ...@@ -127,6 +127,15 @@ public function form(array $form, FormStateInterface $form_state) {
$this->addRevisionableFormFields($form); $this->addRevisionableFormFields($form);
} }
$form['footer'] = [
'#type' => 'container',
'#weight' => 99,
'#attributes' => [
'class' => ['entity-content-form-footer']
],
'#optional' => TRUE,
];
return $form; return $form;
} }
......
...@@ -142,13 +142,6 @@ public function form(array $form, FormStateInterface $form_state) { ...@@ -142,13 +142,6 @@ public function form(array $form, FormStateInterface $form_state) {
'#wrapper_attributes' => ['class' => ['entity-meta__author']], '#wrapper_attributes' => ['class' => ['entity-meta__author']],
]; ];
$form['footer'] = [
'#type' => 'container',
'#weight' => 99,
'#attributes' => [
'class' => ['node-form-footer']
]
];
$form['status']['#group'] = 'footer'; $form['status']['#group'] = 'footer';
// Node author information for administrators. // Node author information for administrators.
......
...@@ -172,7 +172,7 @@ input.form-submit:focus { ...@@ -172,7 +172,7 @@ input.form-submit:focus {
.node-form .form-wrapper { .node-form .form-wrapper {
margin-bottom: 2em; margin-bottom: 2em;
} }
.node-form .node-form-footer, .node-form .entity-content-form-footer,
.node-form .field--name-status { .node-form .field--name-status {
margin-bottom: 0; margin-bottom: 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment