public function StringInterface::isTranslation in Drupal 9
Same name and namespace in other branches
- 8 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\localeCode
public function isTranslation();