interface ExtendedTranslatorPluginInterface in TMGMT Extension Suite 8
Same name and namespace in other branches
- 8.3 src/ExtendedTranslatorPluginInterface.php \Drupal\tmgmt_extension_suit\ExtendedTranslatorPluginInterface
- 8.2 src/ExtendedTranslatorPluginInterface.php \Drupal\tmgmt_extension_suit\ExtendedTranslatorPluginInterface
Interface for service plugin controllers.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\tmgmt\TranslatorPluginInterface
- interface \Drupal\tmgmt_extension_suit\ExtendedTranslatorPluginInterface
- interface \Drupal\tmgmt\TranslatorPluginInterface
Expanded class hierarchy of ExtendedTranslatorPluginInterface
All classes that implement ExtendedTranslatorPluginInterface
9 files declare their use of ExtendedTranslatorPluginInterface
- BaseTmgmtActionApproveForm.php in src/
Form/ BaseTmgmtActionApproveForm.php - DownloadTmgmtActionApproveForm.php in src/
Form/ DownloadTmgmtActionApproveForm.php - JobCheckStatus.php in src/
Plugin/ QueueWorker/ JobCheckStatus.php - JobDownload.php in src/
Plugin/ QueueWorker/ JobDownload.php - JobExtendedForm.php in src/
Form/ JobExtendedForm.php
File
- src/
ExtendedTranslatorPluginInterface.php, line 11
Namespace
Drupal\tmgmt_extension_suitView source
interface ExtendedTranslatorPluginInterface extends TranslatorPluginInterface {
/**
* Checks whether job is ready for download or not.
*
* @param \Drupal\tmgmt\JobInterface $job
* Job object.
*
* @return bool
* TRUE if ready FALSE otherwise.
*/
public function isReadyForDownload(JobInterface $job);
/**
* Downloads translation.
*
* @param \Drupal\tmgmt\JobInterface $job
* Job object.
*
* @return bool
* TRUE if download process completed successfully FALSE otherwise.
*/
public function downloadTranslation(JobInterface $job);
/**
* Returns file name for a given job.
*
* @param \Drupal\tmgmt\JobInterface $job
* Job object.
*
* @return string
* Job file name.
*/
public function getFileName(JobInterface $job);
/**
* Cancels translation.
*
* This method cancels not Drupal translation but translation in
* 3rd party service instead.
*
* @param \Drupal\tmgmt\JobInterface $job
* Job object.
*
* @return bool
* TRUE if canceled FALSE otherwise.
*/
public function cancelTranslation(JobInterface $job);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExtendedTranslatorPluginInterface:: |
public | function | Cancels translation. | |
ExtendedTranslatorPluginInterface:: |
public | function | Downloads translation. | |
ExtendedTranslatorPluginInterface:: |
public | function | Returns file name for a given job. | |
ExtendedTranslatorPluginInterface:: |
public | function | Checks whether job is ready for download or not. | |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
TranslatorPluginInterface:: |
public | function | Aborts a translation job. | 1 |
TranslatorPluginInterface:: |
public | function | Accept a single data item. | 1 |
TranslatorPluginInterface:: |
public | function | Checks whether a translator is available. | 1 |
TranslatorPluginInterface:: |
public | function | Check whether this service can handle a particular translation job. | 1 |
TranslatorPluginInterface:: |
public | function | Defines default settings. | 1 |
TranslatorPluginInterface:: |
public | function | Returns the escaped #text of a data item. | 1 |
TranslatorPluginInterface:: |
public | function | Specifies default mappings for local to remote language codes. | 1 |
TranslatorPluginInterface:: |
public | function | Returns supported language pairs. | 1 |
TranslatorPluginInterface:: |
public | function | Gets all supported languages of the translator. | 1 |
TranslatorPluginInterface:: |
public | function | Returns all available target languages that are supported by this service when given a source language. | 1 |
TranslatorPluginInterface:: |
public | function | Returns if the translator has any settings for the passed job. | 1 |
TranslatorPluginInterface:: |
public | function | @abstract | 3 |
TranslatorPluginInterface:: |
public | function | Removes escape patterns from an escaped text. | 1 |