You are here

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

Generates DSM with "could not find preferred core" message warning.

4 calls to Messages::showNoPreferredCoreError()
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().

File

src/Helper/Messages.php, line 31

Class

Messages
Class Messages.

Namespace

Drupal\acquia_search\Helper

Code

public static function showNoPreferredCoreError() {
  $message = Messages::getNoPreferredCoreError();
  \Drupal::messenger()
    ->addWarning(Markup::create($message));
}