You are here

public function TranslationString::isTranslation in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/locale/src/TranslationString.php \Drupal\locale\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

1 call to TranslationString::isTranslation()
TranslationString::__construct in core/modules/locale/src/TranslationString.php
Constructs a new locale string object.

File

core/modules/locale/src/TranslationString.php, line 84
Contains \Drupal\locale\TranslationString.

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);
}