function DisplayPluginInterface::setOverride

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php \Drupal\views\Plugin\views\display\DisplayPluginInterface::setOverride()
  2. 10 core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php \Drupal\views\Plugin\views\display\DisplayPluginInterface::setOverride()
  3. 11.x core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php \Drupal\views\Plugin\views\display\DisplayPluginInterface::setOverride()

Flip the override setting for the given section.

Parameters

string $section: Which option should be marked as overridden, for example "filters".

bool $new_state: Select the new state of the option:

  • TRUE: Revert new state option to default.
  • FALSE: Mark it as overridden.
1 method overrides DisplayPluginInterface::setOverride()
DisplayPluginBase::setOverride in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Flip the override setting for the given section.

File

core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php, line 368

Class

DisplayPluginInterface
Provides an interface for Views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

public function setOverride($section, $new_state = NULL);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.