You are here

class SmartlingTranslatorBeingTested in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 tests/src/Kernel/SmartlingTranslatorTest.php \Drupal\Tests\tmgmt_smartling\Kernel\SmartlingTranslatorBeingTested

Hierarchy

Expanded class hierarchy of SmartlingTranslatorBeingTested

File

tests/src/Kernel/SmartlingTranslatorTest.php, line 112

Namespace

Drupal\Tests\tmgmt_smartling\Kernel
View 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

Namesort descending Modifiers Type Description Overrides
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function 1
DependencySerializationTrait::__wakeup public function 2
MessengerTrait::$messenger protected property The messenger. 29
MessengerTrait::messenger public function Gets the messenger. 29
MessengerTrait::setMessenger public function Sets the messenger.
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
SmartlingTranslator::$client protected property
SmartlingTranslator::$currentUser protected property
SmartlingTranslator::$eventDispatcher protected property
SmartlingTranslator::$fileUsage protected property
SmartlingTranslator::$formatPluginsManager protected property
SmartlingTranslator::$logger private property
SmartlingTranslator::$smartlingApi protected property Guzzle HTTP client.
SmartlingTranslator::$smartlingApiWrapper private property
SmartlingTranslator::$translationProgressCalculator private property
SmartlingTranslator::abortTranslation public function Aborts a translation job. Overrides TranslatorPluginBase::abortTranslation
SmartlingTranslator::cancelTranslation public function
SmartlingTranslator::checkAvailable public function Checks whether a translator is available. Overrides TranslatorPluginBase::checkAvailable
SmartlingTranslator::checkTranslatable public function Check whether this service can handle a particular translation job. Overrides TranslatorPluginBase::checkTranslatable
SmartlingTranslator::cleanFileName private function Return clean filename, sanitized for path traversal vulnerability.
SmartlingTranslator::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create
SmartlingTranslator::defaultSettings public function Defines default settings. Overrides TranslatorPluginBase::defaultSettings
SmartlingTranslator::downloadTranslation public function Downloads translation file and applies it.
SmartlingTranslator::getApiWrapper public function
SmartlingTranslator::getCallbackUrl private function Returns callback url.
SmartlingTranslator::getDefaultRemoteLanguagesMappings public function Specifies default mappings for local to remote language codes. Overrides TranslatorPluginBase::getDefaultRemoteLanguagesMappings
SmartlingTranslator::getFileName public function Returns file name.
SmartlingTranslator::getSupportedRemoteLanguages public function Gets all supported languages of the translator. Overrides TranslatorPluginBase::getSupportedRemoteLanguages
SmartlingTranslator::getSupportedTargetLanguages public function Returns all available target languages that are supported by this service when given a source language. Overrides TranslatorPluginBase::getSupportedTargetLanguages
SmartlingTranslator::handleSmartlingApiException protected function
SmartlingTranslator::hasCheckoutSettings public function Returns if the translator has any settings for the passed job. Overrides TranslatorPluginBase::hasCheckoutSettings
SmartlingTranslator::isReadyForDownload public function Checks if file is ready for download.
SmartlingTranslator::requestJobItemsTranslation public function Requests the translation of a JobItem. Overrides ContinuousTranslatorInterface::requestJobItemsTranslation
SmartlingTranslator::requestTranslation public function @abstract Overrides TranslatorPluginInterface::requestTranslation
SmartlingTranslator::requestTranslationExtended public function Requests translation.
SmartlingTranslator::__construct public function Constructs a LocalActionBase object. Overrides PluginBase::__construct
SmartlingTranslatorBeingTested::$moduleHandler public property Overrides SmartlingTranslator::$moduleHandler
SmartlingTranslatorBeingTested::addSmartlingDirectives public function Adds smartling directives to upload parameters. Overrides SmartlingTranslator::addSmartlingDirectives
SmartlingTranslatorBeingTested::filterDirectives public function Overrides SmartlingTranslator::filterDirectives
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
TranslatorPluginBase::$escapeEnd protected property Characters that indicate the end of an escaped string. 1
TranslatorPluginBase::$escapeStart protected property Characters that indicate the beginning of an escaped string. 1
TranslatorPluginBase::acceptedDataItem public function Accept a single data item. Overrides TranslatorPluginInterface::acceptedDataItem
TranslatorPluginBase::escapeText public function Returns the escaped #text of a data item. Overrides TranslatorPluginInterface::escapeText
TranslatorPluginBase::getEscapedString protected function Returns the escaped string.
TranslatorPluginBase::getSupportedLanguagePairs 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::getSupportedLanguagePairs 1
TranslatorPluginBase::unescapeText public function Removes escape patterns from an escaped text. Overrides TranslatorPluginInterface::unescapeText