protected function PagerTest::createTranslation in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/Plugin/PagerTest.php \Drupal\views\Tests\Plugin\PagerTest::createTranslation()
Creates single translation for source string.
1 call to PagerTest::createTranslation()
- PagerTest::testPagerLocale in core/
modules/ views/ src/ Tests/ Plugin/ PagerTest.php - Tests translating the pager using locale.
File
- core/
modules/ views/ src/ Tests/ Plugin/ PagerTest.php, line 446 - Contains \Drupal\views\Tests\Plugin\PagerTest.
Class
- PagerTest
- Tests the pluggable pager system.
Namespace
Drupal\views\Tests\PluginCode
protected function createTranslation($source, $translation, $langcode) {
$values = array(
'lid' => $source->lid,
'language' => $langcode,
'translation' => $translation,
);
return $this->localeStorage
->createTranslation($values)
->save();
}