You are here

public function FeatureContext::turnOffTranslationsImport in Open Social 10.0.x

Same name and namespace in other branches
  1. 8.9 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::turnOffTranslationsImport()
  2. 8.3 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::turnOffTranslationsImport()
  3. 8.4 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::turnOffTranslationsImport()
  4. 8.5 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::turnOffTranslationsImport()
  5. 8.6 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::turnOffTranslationsImport()
  6. 8.7 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::turnOffTranslationsImport()
  7. 8.8 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::turnOffTranslationsImport()
  8. 10.3.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::turnOffTranslationsImport()
  9. 10.1.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::turnOffTranslationsImport()
  10. 10.2.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::turnOffTranslationsImport()

Turn off translations import.

@Given I turn off translations import

File

tests/behat/features/bootstrap/FeatureContext.php, line 994

Class

FeatureContext
Defines application features from the specific context.

Namespace

Drupal\social\Behat

Code

public function turnOffTranslationsImport() {

  // Let's disable translation.path for now.
  \Drupal::configFactory()
    ->getEditable('locale.settings')
    ->set('translation.import_enabled', FALSE)
    ->save();
}