You are here

public function SolrRequestHandler::getName in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x src/Entity/SolrRequestHandler.php \Drupal\search_api_solr\Entity\SolrRequestHandler::getName()

Gets the Solr Entity name.

Return value

string The Solr Entity name.

Overrides AbstractSolrEntity::getName

File

src/Entity/SolrRequestHandler.php, line 68

Class

SolrRequestHandler
Defines the SolrRequestHandler entity.

Namespace

Drupal\search_api_solr\Entity

Code

public function getName() : string {
  $nested_name = $this->request_handler['lst'][0]['name'] ?? 'default';
  return $this->request_handler['name'] . '_' . $nested_name;
}