protected function LingotekFunctionalJavascriptTestBase::saveLingotekContentTranslationSettingsForNodeTypes in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 8.2 tests/src/FunctionalJavascript/LingotekFunctionalJavascriptTestBase.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekFunctionalJavascriptTestBase::saveLingotekContentTranslationSettingsForNodeTypes()
- 4.0.x tests/src/FunctionalJavascript/LingotekFunctionalJavascriptTestBase.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekFunctionalJavascriptTestBase::saveLingotekContentTranslationSettingsForNodeTypes()
- 3.0.x tests/src/FunctionalJavascript/LingotekFunctionalJavascriptTestBase.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekFunctionalJavascriptTestBase::saveLingotekContentTranslationSettingsForNodeTypes()
- 3.1.x tests/src/FunctionalJavascript/LingotekFunctionalJavascriptTestBase.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekFunctionalJavascriptTestBase::saveLingotekContentTranslationSettingsForNodeTypes()
- 3.2.x tests/src/FunctionalJavascript/LingotekFunctionalJavascriptTestBase.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekFunctionalJavascriptTestBase::saveLingotekContentTranslationSettingsForNodeTypes()
- 3.3.x tests/src/FunctionalJavascript/LingotekFunctionalJavascriptTestBase.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekFunctionalJavascriptTestBase::saveLingotekContentTranslationSettingsForNodeTypes()
- 3.4.x tests/src/FunctionalJavascript/LingotekFunctionalJavascriptTestBase.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekFunctionalJavascriptTestBase::saveLingotekContentTranslationSettingsForNodeTypes()
- 3.5.x tests/src/FunctionalJavascript/LingotekFunctionalJavascriptTestBase.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekFunctionalJavascriptTestBase::saveLingotekContentTranslationSettingsForNodeTypes()
- 3.6.x tests/src/FunctionalJavascript/LingotekFunctionalJavascriptTestBase.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekFunctionalJavascriptTestBase::saveLingotekContentTranslationSettingsForNodeTypes()
- 3.8.x tests/src/FunctionalJavascript/LingotekFunctionalJavascriptTestBase.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekFunctionalJavascriptTestBase::saveLingotekContentTranslationSettingsForNodeTypes()
Save Lingotek translation settings for node types.
Example:
$this
->saveLingotekContentTranslationSettingsForNodeTypes([
'article',
'page',
], manual);
Parameters
array $node_types: The node types we want to enable.
string $profile: The profile id we want to use.
1 call to LingotekFunctionalJavascriptTestBase::saveLingotekContentTranslationSettingsForNodeTypes()
- LingotekTargetActionsTest::setUp in tests/
src/ FunctionalJavascript/ LingotekTargetActionsTest.php
File
- tests/
src/ FunctionalJavascript/ LingotekFunctionalJavascriptTestBase.php, line 317
Class
Namespace
Drupal\Tests\lingotek\FunctionalJavascriptCode
protected function saveLingotekContentTranslationSettingsForNodeTypes($node_types = [
'article',
], $profile = 'automatic') {
$settings = [];
foreach ($node_types as $node_type) {
$settings['node'][$node_type] = [
'profiles' => $profile,
'fields' => [
'title' => 1,
'body' => 1,
],
];
}
$this
->saveLingotekContentTranslationSettings($settings);
}