You are here

public function FileLinkQueueItem::__construct in File Link 2.0.x

FileLinkQueueItem constructor.

Parameters

string $type: The entity type.

int $id: The entity id.

string $lang: The language code.

int|null $revisionId: The revision id.

int|null $time: The timestamp.

File

src/FileLinkQueueItem.php, line 61

Class

FileLinkQueueItem
Data object for a queue item to update a file link data.

Namespace

Drupal\file_link

Code

public function __construct(string $type, int $id, string $lang = Language::LANGCODE_NOT_SPECIFIED, int $revisionId = NULL, int $time = NULL) {
  $this->type = $type;
  $this->id = $id;
  $this->lang = $lang;
  $this->revisionId = $revisionId;
  if ($time === NULL) {
    $time = \Drupal::time()
      ->getRequestTime();
  }
  $this->time = $time;
}