You are here

public function SourceString::isNew in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/locale/src/SourceString.php \Drupal\locale\SourceString::isNew()

Checks whether the object is not saved to storage yet.

Return value

bool TRUE if the object exists in the storage, FALSE otherwise.

Overrides StringInterface::isNew

File

core/modules/locale/src/SourceString.php, line 52
Contains \Drupal\locale\SourceString.

Class

SourceString
Defines the locale source string object.

Namespace

Drupal\locale

Code

public function isNew() {
  return empty($this->lid);
}