You are here

public function TranslatorResult::getReason in Translation Management Tool 8

Returns the reason for an unsuccessful result.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The reason.

File

src/Translator/TranslatorResult.php, line 45

Class

TranslatorResult
Used by translator to return the boolean result of a check with a reason.

Namespace

Drupal\tmgmt\Translator

Code

public function getReason() {
  return $this->message;
}