You are here

SolrRequestDispatcherListBuilder.php in Search API Solr 8.3

Same filename and directory in other branches
  1. 4.x src/Controller/SolrRequestDispatcherListBuilder.php

File

src/Controller/SolrRequestDispatcherListBuilder.php
View source
<?php

namespace Drupal\search_api_solr\Controller;


/**
 * Provides a listing of SolrRequestDispatcher.
 */
class SolrRequestDispatcherListBuilder extends AbstractSolrEntityListBuilder {

  /**
   * Request dispatcher label.
   *
   * @var string
   */
  protected $label = 'Solr Request Dispatcher';

  /**
   * Returns a list of all disabled request handlers for current server.
   *
   * @return array
   *   List of all disabled request handlers for current server.
   *
   * @throws \Drupal\search_api\SearchApiException
   */
  protected function getDisabledEntities() : array {

    /** @var \Drupal\search_api_solr\SolrBackendInterface $backend */
    $backend = $this
      ->getBackend();
    return $backend
      ->getDisabledRequestDispatchers();
  }

}

Classes

Namesort descending Description
SolrRequestDispatcherListBuilder Provides a listing of SolrRequestDispatcher.