Set an option and force it to be an override.
File
- drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 936
- Contains Drupal\views\Plugin\views\display\DisplayPluginBase.
Class
- DisplayPluginBase
- The default display plugin handler. Display plugins handle options and
basic mechanisms for different output methods.
Namespace
Drupal\views\Plugin\views\display
Code
public function overrideOption($option, $value) {
$this
->setOverride($option, FALSE);
$this
->setOption($option, $value);
}