You are here

class ImportQueueItem in Acquia Content Hub 8

Class for import queue items.

@package Drupal\acquia_contenthub\QueueItem

Hierarchy

Expanded class hierarchy of ImportQueueItem

4 files declare their use of ImportQueueItem
ContentHubImportQueueBaseTest.php in tests/src/Unit/Plugin/QueueWorker/ContentHubImportQueueBaseTest.php
ImportEntityManager.php in src/ImportEntityManager.php
ImportEntityManagerTest.php in tests/src/Unit/ImportEntityManagerTest.php
ImportQueueItemTest.php in tests/src/Unit/QueueItem/ImportQueueItemTest.php

File

src/QueueItem/ImportQueueItem.php, line 10

Namespace

Drupal\acquia_contenthub\QueueItem
View source
class ImportQueueItem extends ContentHubQueueItemBase implements ContentHubQueueItemInterface {

  /**
   * Import dependencies.
   *
   * @var bool
   */
  protected $dependencies;

  /**
   * Import the author.
   *
   * @var bool
   */
  protected $author;

  /**
   * Import the status.
   *
   * @var int
   */
  protected $status;

  /**
   * The entity UUID to import.
   *
   * @var string
   */
  protected $uuid;

  /**
   * Construct the ImportQueueItem.
   *
   * @param string $uuid
   *   The UUID for an entity.
   * @param bool $dependencies
   *   Whether or not to import the dependencies.
   * @param bool $author
   *   Whether or not to import the author.
   * @param int $status
   *   The status to import the entity with.
   */
  public function __construct($uuid, $dependencies = TRUE, $author = TRUE, $status = 0) {
    $this->uuid = $uuid;
    $this->dependencies = $dependencies;
    $this->author = $author;
    $this->status = $status;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ContentHubQueueItemBase::get public function Get a property on the QueueItem. Overrides ContentHubQueueItemInterface::get
ImportQueueItem::$author protected property Import the author.
ImportQueueItem::$dependencies protected property Import dependencies.
ImportQueueItem::$status protected property Import the status.
ImportQueueItem::$uuid protected property The entity UUID to import.
ImportQueueItem::__construct public function Construct the ImportQueueItem.