My name is Silvia, a Spanish girl, and I currently have a site who is hosted on Wordpress. The website is http://el-mejor.com (el-mejor.com)
I love new challenges and Im looking for the best CMS that currently exists. I have heard that Drupal is undoubtedly the best of all because it allows you to develop practically anything that you can think.
I am altering a view using hook_views_data_alter to display a date range filter.
I was able to create the form to look the way I wanted with hook_form_alter.
It looks like this:
Start Date: (textfield, the value of which is a filter)
End Date: (textfield, the value of which is a filter)
Now, this works and it filters successfully. What I'm having a hard time with, though, is a pair of radio buttons I'm generating in hook_form_alter.
This must be incredibly simple, but I'm having a difficult time understanding how form submission works in Drupal 8.
I have created a form that extends FormBase. I have a controller that is calling that form with
$form = \Drupal::formBuilder()->getForm($form_path);
and then I just return the form.