The current workbench_content alter hook is very useful to override views conditionally in any of the regions. This could be improved by having it support view arguments (contextual filters).
The benefit is in designing similar views showing content depending on the user's role. For example, I might want to show only content in "To be reviewed" state to a user with the editor role. Right now, I'd have to create multiple views or view displays and load that. With this support, we would be able to use a single view and passing the moderation state in argument.
Write a patch
N/A
Adding a new array entry which is passed to hook_workbench_content_alter
and subsequently to \Drupal\workbench\Controller\WorkbenchContentController::renderBlocks
N/A
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.