This is a custom module to create filter by year for views - interact with the Views API in Drupal 8. Create a field called year so it will be like field_year. And you can the use same field with one or more content types.