public function DisplayPluginInterface::setOverride in Drupal 9
Same name and namespace in other branches
- 8 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\displayCode
public function setOverride($section, $new_state = NULL);