private function PageContext::setContextAdvanced in Acquia Lift Connector 8.3
Same name and namespace in other branches
- 8.4 src/Service/Context/PageContext.php \Drupal\acquia_lift\Service\Context\PageContext::setContextAdvanced()
Set page context - advanced.
Parameters
array $advanced_settings: Advanced settings array.
1 call to PageContext::setContextAdvanced()
- PageContext::__construct in src/
Service/ Context/ PageContext.php - Constructor.
File
- src/
Service/ Context/ PageContext.php, line 231
Class
Namespace
Drupal\acquia_lift\Service\ContextCode
private function setContextAdvanced($advanced_settings) {
$bootstrap_mode = isset($advanced_settings['bootstrap_mode']) ? $advanced_settings['bootstrap_mode'] : 'auto';
$replacement_mode = $advanced_settings['content_replacement_mode'];
if (SettingsHelper::isValidBootstrapMode($bootstrap_mode)) {
$this->htmlHeadContexts['bootstrapMode'] = $bootstrap_mode;
}
if (SettingsHelper::isValidContentReplacementMode($replacement_mode)) {
$this->htmlHeadContexts['contentReplacementMode'] = $replacement_mode;
}
}