You are here

protected function Date::valueForm in Persian Date for Drupal 8 8.4

@inheritDoc

Overrides Date::valueForm

File

src/Plugin/views/filter/Date.php, line 22

Class

Date
Filter to handle dates stored as a timestamp.

Namespace

Drupal\persian_date\Plugin\views\filter

Code

protected function valueForm(&$form, FormStateInterface $form_state) {
  parent::valueForm($form, $form_state);
  if (isset($form['value'])) {
    $form['value']['#attributes']['autocomplete'] = 'off';
  }
}