public static function SettingsHelper::isValidBootstrapMode in Acquia Lift Connector 8.4
Same name and namespace in other branches
- 8.3 src/Service/Helper/SettingsHelper.php \Drupal\acquia_lift\Service\Helper\SettingsHelper::isValidBootstrapMode()
Is a valid bootstrap mode.
Parameters
string: Mode to compare
Return value
boolean True if valid, false otherwise.
1 call to SettingsHelper::isValidBootstrapMode()
- PageContext::setContextAdvanced in src/
Service/ Context/ PageContext.php - Set page context - advanced.
File
- src/
Service/ Helper/ SettingsHelper.php, line 124
Class
- SettingsHelper
- Defines the Settings Helper class.
Namespace
Drupal\acquia_lift\Service\HelperCode
public static function isValidBootstrapMode($test_mode) {
$valid_modes = [
'auto',
'manual',
];
return in_array($test_mode, $valid_modes);
}