Programmatically change views pager type or options
Suppose you have a view and want to dynamically alter the number of results shown by the view based on the view arguments.
Get current view object from route object
Sometimes you want to get the view object from a route object.