You are here

public function StringInterface::isTranslation in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface::isTranslation()

Checks whether the object is a translation string.

Return value

bool TRUE if the object is a translation string, FALSE otherwise.

2 methods override StringInterface::isTranslation()
SourceString::isTranslation in core/modules/locale/src/SourceString.php
Checks whether the object is a translation string.
TranslationString::isTranslation in core/modules/locale/src/TranslationString.php
Checks whether the object is a translation string.

File

core/modules/locale/src/StringInterface.php, line 125

Class

StringInterface
Defines the locale string interface.

Namespace

Drupal\locale

Code

public function isTranslation();