public TranslationString::isTranslation()
Checks whether the object is a translation string.
Return value
bool TRUE if the object is a translation string, FALSE otherwise.
Overrides StringInterface::isTranslation
File
- core/modules/locale/src/TranslationString.php, line 79
Class
- TranslationString
- Defines the locale translation string object.
Namespace
Drupal\locale
Code
1 2 3 | public function isTranslation() { return ! empty ( $this ->lid) && ! empty ( $this ->language) && isset( $this ->translation); } |
Please login to continue.