function CurrentImport::__construct
Creates a CurrentImport object for tracking translation information.
Parameters
string $project: The project the translation is for.
string $langcode: The langcode the translation is for.
string $version: The project version the translation is for.
string $hash: The hash using the LocaleSource::LOCAL_FILE_HASH_ALGO.
int $timestamp: When the translation was imported, 0 means never.
int|null $last_checked: When the translation was last checked.
File
-
core/
modules/ locale/ src/ CurrentImport.php, line 30
Class
- CurrentImport
- Represents information about the current import status.
Namespace
Drupal\localeCode
public function __construct(public string $project, public string $langcode, public string $version, public string $hash, public int $timestamp, public ?int $last_checked = NULL) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.