public function CreateActivityForm::submitForm in Activity 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- src/
Form/ CreateActivityForm.php, line 99
Class
- CreateActivityForm
- Create activities form.
Namespace
Drupal\activity\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$hook = $form_state
->getValue('activity_actions');
$label = $form_state
->getValue('activity_label');
$this->store
->set('hook', $hook);
$this->store
->set('label', $label);
// Move to next form to configure the event.
$url = Url::fromUri('internal:/admin/activity/configure/new');
$form_state
->setRedirectUrl($url);
}