Problem/Motivation
Splitting out from https://www.drupal.org/project/drupal/issues/2234295#comment-15699921
Steps to reproduce
See code
Proposed resolution
Remove $valid from checkPermissions
Remaining tasks
None
User interface changes
None
Introduced terminology
None
API changes
None
Data model changes
None
Release notes snippet
None