Account created on 12 March 2020, almost 5 years ago
#

Recent comments

Hi, I found that the settings form is always displayed on the search API index page.
But I just want to config it when I use the elasticsearch connector plugin.

I add the below code to hide the form when I use another search API.

  $searchIndex = $form_state->getFormObject()->getEntity();
  if (!$searchIndex->getServerInstance() || $searchIndex->getServerInstance()->getBackendId() !== 'elasticsearch') {
    return;
  }
Production build 0.71.5 2024