public static function TranslatorResult::no

Returns the object with FALSE and a message.

Parameters

\Drupal\Core\StringTranslation\TranslatableMarkup|null $reason: The reason in case of an unsuccessful check.

Return value

static This returns the instance of the object with desired values.

File

src/Translator/TranslatorResult.php, line 93

Class

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

Namespace

Drupal\tmgmt\Translator

Code

public static function no($reason) {
  return new static(FALSE, $reason);
}