You are here

public function StringBase::getId in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/locale/src/StringBase.php \Drupal\locale\StringBase::getId()
  2. 10 core/modules/locale/src/StringBase.php \Drupal\locale\StringBase::getId()

Gets the string unique identifier.

Return value

int The string identifier.

Overrides StringInterface::getId

1 call to StringBase::getId()
StringBase::getLocations in core/modules/locale/src/StringBase.php
Gets location information for this string.

File

core/modules/locale/src/StringBase.php, line 69

Class

StringBase
Defines the locale string base class.

Namespace

Drupal\locale

Code

public function getId() {
  return isset($this->lid) ? $this->lid : NULL;
}