protected function AcquiaSearchOverrideTest::getSiteFolderName in Acquia Search 2.x
Returns the folder name of the current site folder.
2 calls to AcquiaSearchOverrideTest::getSiteFolderName()
- AcquiaSearchOverrideTest::setAvailableSearchCores in tests/
src/ Kernel/ AcquiaSearchOverrideTest.php - Sets available search cores into the subscription heartbeat data.
- AcquiaSearchOverrideTest::testApacheSolrOverrideWhenCoreWithDbNameNotAvailable in tests/
src/ Kernel/ AcquiaSearchOverrideTest.php - Test core override when a core with db name is unavailable.
File
- tests/
src/ Kernel/ AcquiaSearchOverrideTest.php, line 332
Class
- AcquiaSearchOverrideTest
- Tests for Acquia Search override cores.
Namespace
Drupal\Tests\acquia_search\KernelCode
protected function getSiteFolderName() {
$conf_path = \Drupal::service('site.path');
return substr($conf_path, strrpos($conf_path, '/') + 1);
}