protected function AcquiaConnectorSearchOverrideTest::getSiteFolderName in Acquia Connector 8
Returns the folder name of the current site folder.
3 calls to AcquiaConnectorSearchOverrideTest::getSiteFolderName()
- AcquiaConnectorSearchOverrideTest::caseAcquiaHostingEnvironmentDetectedNoAvailableCores in acquia_search/
tests/ src/ Functional/ AcquiaConnectorSearchOverrideTest.php - Acquia Test environment and a DB name.
- AcquiaConnectorSearchOverrideTest::caseAcquiaHostingProdEnvironmentDetectedWithoutProdFlag in acquia_search/
tests/ src/ Functional/ AcquiaConnectorSearchOverrideTest.php - Acquia Prod environment and a DB name but AH_PRODUCTION isn't set.
- AcquiaConnectorSearchOverrideTest::setAvailableSearchCores in acquia_search/
tests/ src/ Functional/ AcquiaConnectorSearchOverrideTest.php - Sets available search cores into the subscription heartbeat data.
File
- acquia_search/
tests/ src/ Functional/ AcquiaConnectorSearchOverrideTest.php, line 359
Class
- AcquiaConnectorSearchOverrideTest
- Tests the automatic switching behavior of the Acquia Search module.
Namespace
Drupal\Tests\acquia_search\FunctionalCode
protected function getSiteFolderName() {
$conf_path = \Drupal::service('site.path');
return substr($conf_path, strrpos($conf_path, '/') + 1);
}