function StringInterface::isTranslation

Same name in other branches
  1. 9 core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface::isTranslation()
  2. 8.9.x core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface::isTranslation()
  3. 10 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
TranslationString::isTranslation in core/modules/locale/src/TranslationString.php

File

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

Class

StringInterface
Defines the locale string interface.

Namespace

Drupal\locale

Code

public function isTranslation();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.