Contribution Date
Technology
Contribution Project
Contribution Details
Instead of hacking core, I achieved it using "Request" in form_alter.
I am able to fetch the values using below code:
Implemented in Drupal 8.7.6
// To fetch current state values
$request = \Drupal::request();
$default_date = $request->get('field_date_value');
// To set values in views exposed_filter form, I set in setUserInput like this
$form_state->setUserInput(['field_type' => $tid]);
Just for anyone's help.
Issue Status
Needs work
Contribution Issue Link
Contribution Link
Files count
0
Patches count
0