You are here

public function SourceString::isSource in Drupal 9

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

Checks whether the object is a source string.

Return value

bool TRUE if the object is a source string, FALSE otherwise.

Overrides StringInterface::isSource

File

core/modules/locale/src/SourceString.php, line 17

Class

SourceString
Defines the locale source string object.

Namespace

Drupal\locale

Code

public function isSource() {
  return isset($this->source);
}