1 views_plugin_display.inc views_plugin_display::set_option($option, $value)

Intelligently set an option either from this display or from the default display, if directed to do so.


core/modules/views/plugins/views_plugin_display.inc, line 1019
Contains the base display plugin.


The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.


function set_option($option, $value) {
  if ($this->is_defaulted($option)) {
    return $this->default_display->set_option($option, $value);

  // Set this in two places: On the handler where we'll notice it
  // but also on the display object so it gets saved. This should
  // only be a temporary fix.
  $this->display->display_options[$option] = $value;
  return $this->options[$option] = $value;