Skip to content

Commit

Permalink
change methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Feb 7, 2025
1 parent f5a5100 commit 273693d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Form/StanfordFieldBookAdminEditForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ public function buildForm(array $form, FormStateInterface $form_state, ?NodeInte
/**
* {@inheritDoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state): void {
public function validateForm(array &$form, FormStateInterface $form_state): void {
foreach (Element::children($form['table']) as $key) {
if (isset($form['table'][$key]['#nid'])) {
$page_title = $form['table'][$key]['title']['#markup'];
$form_state->setValue(['table', $key, 'title'], $page_title);
}
}
parent::submitForm($form, $form_state);
parent::validateForm($form, $form_state);
}

}

0 comments on commit 273693d

Please sign in to comment.