You are here

protected function SolrConfigSetController::getListBuilder in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x src/Controller/SolrConfigSetController.php \Drupal\search_api_solr\Controller\SolrConfigSetController::getListBuilder()

Returns a ListBuilder.

Parameters

string $entity_type_id: Entity type id.

\Drupal\search_api\ServerInterface|null $search_api_server: Search API Server.

Return value

\Drupal\search_api_solr\Controller\AbstractSolrEntityListBuilder A ListBuilder.

Throws

\Drupal\search_api\SearchApiException

6 calls to SolrConfigSetController::getListBuilder()
SolrConfigSetController::getConfigFiles in src/Controller/SolrConfigSetController.php
Returns the configuration files names and content.
SolrConfigSetController::getSchemaExtraFieldsXml in src/Controller/SolrConfigSetController.php
Provides an XML snippet containing all extra Solr fields.
SolrConfigSetController::getSchemaExtraTypesXml in src/Controller/SolrConfigSetController.php
Provides an XML snippet containing all extra Solr field types.
SolrConfigSetController::getSolrconfigExtraXml in src/Controller/SolrConfigSetController.php
Provides an XML snippet containing all extra solrconfig.
SolrConfigSetController::getSolrconfigQueryXml in src/Controller/SolrConfigSetController.php
Provides an XML snippet containing all query cache settings as XML.

... See full list

File

src/Controller/SolrConfigSetController.php, line 415

Class

SolrConfigSetController
Provides different listings of SolrFieldType.

Namespace

Drupal\search_api_solr\Controller

Code

protected function getListBuilder(string $entity_type_id, ?ServerInterface $search_api_server = NULL) : AbstractSolrEntityListBuilder {

  /** @var \Drupal\search_api_solr\Controller\AbstractSolrEntityListBuilder $list_builder */
  $list_builder = $this
    ->entityTypeManager()
    ->getListBuilder($entity_type_id);
  if ($search_api_server) {
    $list_builder
      ->setServer($search_api_server);
  }
  else {
    $list_builder
      ->setBackend($this
      ->getBackend());
  }
  return $list_builder;
}