You are here

public function FeatureContext::turnOffTranslationsImport in Open Social 8

Same name and namespace in other branches
  1. 8.2 tests/behat/features/bootstrap/FeatureContext.php \FeatureContext::turnOffTranslationsImport()

Turn off translations import.

@Given I turn off translations import

File

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

Class

FeatureContext
Defines application features from the specific context.

Code

public function turnOffTranslationsImport() {

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