You are here

public static function SearchApiSolrBackend::buildAjaxSolrConnectorConfigForm in Search API Solr 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::buildAjaxSolrConnectorConfigForm()
  2. 8.2 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::buildAjaxSolrConnectorConfigForm()
  3. 4.x src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::buildAjaxSolrConnectorConfigForm()

Handles switching the selected Solr connector plugin.

File

src/Plugin/search_api/backend/SearchApiSolrBackend.php, line 350

Class

SearchApiSolrBackend
Apache Solr backend for search api.

Namespace

Drupal\search_api_solr\Plugin\search_api\backend

Code

public static function buildAjaxSolrConnectorConfigForm(array $form, FormStateInterface $form_state) {

  // The work is already done in form(), where we rebuild the entity according
  // to the current form values and then create the backend configuration form
  // based on that. So we just need to return the relevant part of the form
  // here.
  return $form['backend_config']['connector_config'];
}