Backport helper method for view blocks from 3.0

Related PR is #5385
Merge pull request #5387 from dakota/2.7

Backport helper method for view blocks from 3.0