You are here

public static function Utility::generateConfigsetName in Search API Solr 4.x

Returns a suitable name for a new configset.

Parameters

\Drupal\search_api\ServerInterface $server: The Solr server to generate the name for.

Return value

string A suitable name for a new configset.

1 call to Utility::generateConfigsetName()
SolrAdminCommandHelper::uploadConfigset in modules/search_api_solr_admin/src/Utility/SolrAdminCommandHelper.php
Generates and uploads the configset for a Solr search server.

File

src/Utility/Utility.php, line 156

Class

Utility
Provides various helper functions for Solr backends.

Namespace

Drupal\search_api_solr\Utility

Code

public static function generateConfigsetName(ServerInterface $server) : string {
  return $server
    ->id() . '_' . self::getSiteHash();
}