You are here

public function SourcePluginInterface::saveTranslation in Translation Management Tool 8

Saves a translation.

Parameters

\Drupal\tmgmt\JobItemInterface $job_item: The job item entity.

string $target_langcode: The target language code.

Return value

bool TRUE if the translation was saved successfully, FALSE otherwise.

4 methods override SourcePluginInterface::saveTranslation()
ConfigSource::saveTranslation in sources/tmgmt_config/src/Plugin/tmgmt/Source/ConfigSource.php
Saves a translation.
ContentEntitySource::saveTranslation in sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php
Saves a translation.
LocaleSource::saveTranslation in sources/locale/src/Plugin/tmgmt/Source/LocaleSource.php
Saves a translation.
TestSource::saveTranslation in tmgmt_test/src/Plugin/tmgmt/Source/TestSource.php
Saves a translation.

File

src/SourcePluginInterface.php, line 35

Class

SourcePluginInterface
Interface for source plugin controllers.

Namespace

Drupal\tmgmt

Code

public function saveTranslation(JobItemInterface $job_item, $target_langcode);