You are here

public static function Messages::showReadOnlyModeWarning in Acquia Search 3.x

Generates DSM with read-only message warning.

5 calls to Messages::showReadOnlyModeWarning()
acquia_search_form_search_api_index_edit_form_alter in ./acquia_search.module
Implements hook_form_FORM_ID_alter().
acquia_search_form_search_api_server_edit_form_alter in ./acquia_search.module
Implements hook_form_FORM_ID_alter().
acquia_search_form_search_api_server_status_alter in ./acquia_search.module
Implements hook_form_FORM_ID_alter().
acquia_search_preprocess_search_api_index in ./acquia_search.module
Implements hook_preprocess_HOOK().
acquia_search_preprocess_search_api_server in ./acquia_search.module
Theme override function for Search API server status page.

File

src/Helper/Messages.php, line 20

Class

Messages
Class Messages.

Namespace

Drupal\acquia_search\Helper

Code

public static function showReadOnlyModeWarning() {
  $message = Messages::getReadOnlyModeWarning();
  \Drupal::messenger()
    ->addWarning($message);
}