class TranslatableResult

Returns the result of whether a translator can translate a job.

Hierarchy

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\Translator
View source
class TranslatableResult extends TranslatorResult {

}

Members

Namesort descending Modifiers Type Description Overrides
TranslatorResult::$message protected property Message in case success is FALSE.
TranslatorResult::$success protected property TRUE or FALSE for response.
TranslatorResult::getReason public function Returns the reason for an unsuccessful result.
TranslatorResult::getSuccess public function Returns the object state on success.
TranslatorResult::no public static function Returns the object with FALSE and a message.
TranslatorResult::setNo protected function Sets the value success to FALSE and sets the $message accordingly.
TranslatorResult::setYes protected function Sets the value success to TRUE.
TranslatorResult::yes public static function Returns the object with TRUE.
TranslatorResult::__construct protected function Constructs a result object.