How to do I create a filter on my view that filters based on the value of one field being equal to the name of the currently logged in user? The field is static.
You can use contextual filter, as suggested by DRUPWAY in his comment.
- Add a new contextual filter
- Select the field to use
- For When the filter value is NOT in the URL, select Provide value, and then PHP code for Type
- In PHP contextual filter code, enter the following code
global $user; return $user->name;
For the user ID, it would be simpler: In step 3, you would select User ID from logged in user.
In Drupal 8 you can just use the module: