-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Mastering Drupal 8
By :
A View filter restricts the entities displayed by the View to only those matching a specified criterion. When we created our initial View, and selected the type of content to view we started with filters for the Content type and publication status.
If we navigate back to our View and click on the Add button next to AddFilter criteria we will be presented with a dialog where we can add additional filters.

There are a great number of filters that can be applied to content. In Drupal 8 core, we can add filters based on content revisions, access permissions, comments, taxonomies, and any fields or attributes attached to the content itself. Different types of field have different parameters that may be applied to them.
For instance, if we wanted to show a list of Articles that had been created or updated within the last week we would select Changed from the list of options and click Add and configure filter criteria.
Since that field is a date, we can provide...