function LocaleTranslationSource::isUpdateAvailable

Returns whether an update is available.

Return value

bool There is an update available or not.

File

core/modules/locale/src/LocaleTranslationSource.php, line 119

Class

LocaleTranslationSource
Provides source and translation status information for a project/langcode.

Namespace

Drupal\locale

Code

public function isUpdateAvailable() : bool {
  return $this->getType() == SourceType::Local || $this->getType() == SourceType::Remote;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.