This code in Magento\Framework\App\Action
/**
* @deprecated
* @var \Magento\Framework\App\ViewInterface
*/
protected $_view;
Is the deprecated docblock element supposed to be there? If so, what is the alternative? The core code uses this in a lot of places, for example to load the layout: $this->_view->loadLayout();