class TranslatableResult in Translation Management Tool 8
Returns the result of whether a translator can translate a job.
Hierarchy
- class \Drupal\tmgmt\Translator\TranslatorResult
- class \Drupal\tmgmt\Translator\TranslatableResult
Expanded class hierarchy of TranslatableResult
5 files declare their use of TranslatableResult
- FileTranslator.php in translators/
tmgmt_file/ src/ Plugin/ tmgmt/ Translator/ FileTranslator.php - Job.php in src/
Entity/ Job.php - TestTranslator.php in tmgmt_test/
src/ Plugin/ tmgmt/ Translator/ TestTranslator.php - Translator.php in src/
Entity/ Translator.php - TranslatorPluginBase.php in src/
TranslatorPluginBase.php
File
- src/
Translator/ TranslatableResult.php, line 8
Namespace
Drupal\tmgmt\TranslatorView source
class TranslatableResult extends TranslatorResult {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TranslatorResult:: |
protected | property | Message in case success is FALSE. | |
TranslatorResult:: |
protected | property | TRUE or FALSE for response. | |
TranslatorResult:: |
public | function | Returns the reason for an unsuccessful result. | |
TranslatorResult:: |
public | function | Returns the object state on success. | |
TranslatorResult:: |
public static | function | Returns the object with FALSE and a message. | |
TranslatorResult:: |
protected | function | Sets the value success to FALSE and sets the $message accordingly. | |
TranslatorResult:: |
protected | function | Sets the value success to TRUE. | |
TranslatorResult:: |
public static | function | Returns the object with TRUE. | |
TranslatorResult:: |
protected | function | Constructs a result object. |