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

Breadcrumb

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

function 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
Checks whether the object is a translation string.
TranslationString::isTranslation in core/modules/locale/src/TranslationString.php
Checks whether the object is a translation string.

File

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

Class

StringInterface
Defines the locale string interface.

Namespace

Drupal\locale

Code

public function isTranslation();

API Navigation

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