function LocaleTranslationSource::__construct

Same name and namespace in other branches
  1. main core/modules/locale/src/LocaleTranslationSource.php \Drupal\locale\LocaleTranslationSource::__construct()

File

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

Class

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

Namespace

Drupal\locale

Code

public function __construct(public string $project, public string $langcode, public string $type = '', public int $timestamp = 0, public string $hash = '', public int $last_checked = 0) {
  $this->name = $project;
}

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