Checks whether the object is a translation string.
Return value
bool
TRUE if the object is a translation string, FALSE otherwise.
File
- drupal/core/modules/locale/lib/Drupal/locale/StringInterface.php, line 134
- Definition of Drupal\locale\StringInterface.
Class
- StringInterface
- Defines the locale string interface.
Namespace
Drupal\locale
Code
public function isTranslation();