TranslationString::isTranslation

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

public function isTranslation() {
  return !empty($this->lid) && !empty($this->language) && isset($this->translation);
}
doc_Drupal
2016-10-29 09:49:27
Comments
Leave a Comment

Please login to continue.