Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TranslationString.php

function TranslationString::isTranslation

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal