Back in Drupal 7 I've created exposed filter with Year from date field. (Selet list).

  • View all
  • 2017
  • 2016
  • 2015 etc...

And when creating such filter we had options like on this picture:

enter image description here
BUT, now in Drupal 8 I cannot see that is supported.

I've installed Better Exposed filters but only thing is that I can select datepicker instead of plain text field for this filter, but I need select list and only years.

If it's not possible yet, where I can find examples of creating custom exposed filters or something like that?

1 Answer 1


Luckily just a day before your question this tutorial for year select filter was posted on Drupal planet:


  • Thanks, but actually it is posted 8 months after :)
    – blastoise
    Oct 20, 2017 at 19:29
  • Oh sorry, didn't look at the date, question was obviously bumped by bot :-)
    – Hudri
    Oct 22, 2017 at 7:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.