public static function Messages::getOverriddenModeMessage in Acquia Search 3.x
Get text describing the current override mode.
Parameters
int $override: Override mode. Read-only or core auto selected.
Return value
array|\Drupal\Core\StringTranslation\TranslatableMarkup Text describing the current override mode.
1 call to Messages::getOverriddenModeMessage()
- Messages::getSearchStatusMessage in src/
Helper/ Messages.php - Returns formatted message about Acquia Search connection details.
File
- src/
Helper/ Messages.php, line 142
Class
- Messages
- Class Messages.
Namespace
Drupal\acquia_search\HelperCode
public static function getOverriddenModeMessage(int $override) {
switch ($override) {
case SearchApiSolrAcquiaConnector::READ_ONLY:
return [
'#markup' => '<span class="color-warning">' . t('Acquia Search Solr module automatically enforced read-only mode on this connection.') . '</span>',
];
case SearchApiSolrAcquiaConnector::OVERRIDE_AUTO_SET:
return t('Acquia Search Solr module automatically selected the proper Solr connection based on the detected environment and configuration.');
}
}