How do I programmatically update the rendering language? I am trying to programmatically set the Views rendering language of a couple of Views having multiple displays. I found that doing it manually is error prone.
use Drupal\views\Views;

$view = Views::getView('ap_country');
print_r($view-&gt;display_id);

$view-&gt;setHandlerOption('page_2', 'argument', 'nid', 'admin_label', 'Foo');
$view-&gt;save();

I am trying to achieve something like the above and then export the View. However rendering language does not seem to be a handler.
The reason behind dong this is currently all the views are set to the current Interface language and I want to switch to the content language.
Yes, this is not a handler setting. This is configured directly in a display.
To update a View programmatically use the storage property of the View object (which is by the way a reference to the config object discussed in the comments) and get a reference of a display (the master display is default):
$view = \Drupal\views\Views::getView('myview');
$storage = $view-&gt;storage;
$display = &amp;$storage-&gt;getDisplay('page_2');
$display['display_options']['rendering_language'] = '***LANGUAGE_language_content***';
$storage-&gt;save();