Same filename and directory in other branches
- 8.9.x core/modules/locale/src/SourceString.php
- 9 core/modules/locale/src/SourceString.php
Namespace
Drupal\locale
File
core/modules/locale/src/SourceString.php
View source
<?php
namespace Drupal\locale;
class SourceString extends StringBase {
public function isSource() {
return isset($this->source);
}
public function isTranslation() {
return FALSE;
}
public function getString() {
return $this->source ?? '';
}
public function setString($string) {
$this->source = $string;
return $this;
}
public function isNew() {
return empty($this->lid);
}
}
Classes