public function MegaMenuAdd::submitForm in The Better Mega Menu 8
Same name and namespace in other branches
- 2.x src/Form/MegaMenuAdd.php \Drupal\tb_megamenu\Form\MegaMenuAdd::submitForm()
Overrides EntityForm::submitForm
See also
\Drupal\Core\Entity\EntityForm::submitForm()
File
- src/
Form/ MegaMenuAdd.php, line 128
Class
- MegaMenuAdd
- Form handler for adding MegaMenuConfig entities.
Namespace
Drupal\tb_megamenu\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$id = $form_state
->getValue('menu') . '__' . $form_state
->getValue('theme');
$form_state
->setValue('id', $id);
parent::submitForm($form, $form_state);
}