class SmartlingTranslatorBeingTested in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 tests/src/Kernel/SmartlingTranslatorTest.php \Drupal\Tests\tmgmt_smartling\Kernel\SmartlingTranslatorBeingTested
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\tmgmt\TranslatorPluginBase implements TranslatorPluginInterface
- class \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator implements \Drupal\tmgmt_extension_suit\ExtendedTranslatorPluginInterface, ContainerFactoryPluginInterface, ContinuousTranslatorInterface
- class \Drupal\Tests\tmgmt_smartling\Kernel\SmartlingTranslatorBeingTested
- class \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator implements \Drupal\tmgmt_extension_suit\ExtendedTranslatorPluginInterface, ContainerFactoryPluginInterface, ContinuousTranslatorInterface
- class \Drupal\tmgmt\TranslatorPluginBase implements TranslatorPluginInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of SmartlingTranslatorBeingTested
File
- tests/
src/ Kernel/ SmartlingTranslatorTest.php, line 142
Namespace
Drupal\Tests\tmgmt_smartling\KernelView source
class SmartlingTranslatorBeingTested extends SmartlingTranslator {
public $moduleHandler;
public function filterDirectives(array $directives) {
return parent::filterDirectives($directives);
}
public function addSmartlingDirectives(UploadFileParameters $params, JobInterface $job) {
return parent::addSmartlingDirectives($params, $job);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | 1 | |
DependencySerializationTrait:: |
public | function | 2 | |
MessengerTrait:: |
protected | property | The messenger. | 29 |
MessengerTrait:: |
public | function | Gets the messenger. | 29 |
MessengerTrait:: |
public | function | Sets the messenger. | |
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
SmartlingTranslator:: |
protected | property | ||
SmartlingTranslator:: |
protected | property | ||
SmartlingTranslator:: |
protected | property | ||
SmartlingTranslator:: |
protected | property | ||
SmartlingTranslator:: |
protected | property | ||
SmartlingTranslator:: |
private | property | ||
SmartlingTranslator:: |
private | property | ||
SmartlingTranslator:: |
private | property | ||
SmartlingTranslator:: |
public | function |
Aborts a translation job. Overrides TranslatorPluginBase:: |
|
SmartlingTranslator:: |
public | function | ||
SmartlingTranslator:: |
public | function |
Checks whether a translator is available. Overrides TranslatorPluginBase:: |
|
SmartlingTranslator:: |
public | function |
Check whether this service can handle a particular translation job. Overrides TranslatorPluginBase:: |
|
SmartlingTranslator:: |
private | function | Return clean filename, sanitized for path traversal vulnerability. | |
SmartlingTranslator:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
SmartlingTranslator:: |
public | function |
Defines default settings. Overrides TranslatorPluginBase:: |
|
SmartlingTranslator:: |
public | function | @inheritdoc | |
SmartlingTranslator:: |
public | function | ||
SmartlingTranslator:: |
private | function | Returns callback url. | |
SmartlingTranslator:: |
public | function |
Specifies default mappings for local to remote language codes. Overrides TranslatorPluginBase:: |
|
SmartlingTranslator:: |
public | function | Returns file name. | |
SmartlingTranslator:: |
public | function |
Gets all supported languages of the translator. Overrides TranslatorPluginBase:: |
|
SmartlingTranslator:: |
public | function |
Returns all available target languages that are supported by this service
when given a source language. Overrides TranslatorPluginBase:: |
|
SmartlingTranslator:: |
public | function |
Returns if the translator has any settings for the passed job. Overrides TranslatorPluginBase:: |
|
SmartlingTranslator:: |
public | function | ||
SmartlingTranslator:: |
public | function |
Requests the translation of a JobItem. Overrides ContinuousTranslatorInterface:: |
|
SmartlingTranslator:: |
public | function |
@abstract Overrides TranslatorPluginInterface:: |
|
SmartlingTranslator:: |
public | function | Requests translation. | |
SmartlingTranslator:: |
public | function |
Constructs a LocalActionBase object. Overrides PluginBase:: |
|
SmartlingTranslatorBeingTested:: |
public | property |
Overrides SmartlingTranslator:: |
|
SmartlingTranslatorBeingTested:: |
public | function |
Adds smartling directives to upload parameters. Overrides SmartlingTranslator:: |
|
SmartlingTranslatorBeingTested:: |
public | function |
Overrides SmartlingTranslator:: |
|
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TranslatorPluginBase:: |
protected | property | Characters that indicate the end of an escaped string. | 1 |
TranslatorPluginBase:: |
protected | property | Characters that indicate the beginning of an escaped string. | 1 |
TranslatorPluginBase:: |
public | function |
Accept a single data item. Overrides TranslatorPluginInterface:: |
|
TranslatorPluginBase:: |
public | function |
Returns the escaped #text of a data item. Overrides TranslatorPluginInterface:: |
|
TranslatorPluginBase:: |
protected | function | Returns the escaped string. | |
TranslatorPluginBase:: |
public | function |
Default implementation that gets target languages for each remote language.
This approach is ineffective and therefore it is advised that a plugin
should provide own implementation. Overrides TranslatorPluginInterface:: |
1 |
TranslatorPluginBase:: |
public | function |
Removes escape patterns from an escaped text. Overrides TranslatorPluginInterface:: |