public function HighContrastTrait::disableHighContrast in High contrast 8
Disables high contrast mode.
2 calls to HighContrastTrait::disableHighContrast()
- HighContrastController::disable in src/
HighContrastController.php - Disable high contrast.
- HighContrastSwitchForm::submitForm in src/
Form/ HighContrastSwitchForm.php - Handles the saving of the high contrast state from select and radios. The links are handled via a route.
File
- src/
HighContrastTrait.php, line 34
Class
- HighContrastTrait
- This is an abstraction wrapper for controlling high contrast.
Namespace
Drupal\high_contrastCode
public function disableHighContrast() {
$_SESSION['high_contrast']['enabled'] = FALSE;
}