SourceString::isNew

public 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 45

Class

SourceString
Defines the locale source string object.

Namespace

Drupal\locale

Code

1
2
3
public function isNew() {
  return empty($this->lid);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.