class ImportQueueItem in Acquia Content Hub 8
Class for import queue items.
@package Drupal\acquia_contenthub\QueueItem
Hierarchy
- class \Drupal\acquia_contenthub\QueueItem\ContentHubQueueItemBase implements ContentHubQueueItemInterface
- class \Drupal\acquia_contenthub\QueueItem\ImportQueueItem implements ContentHubQueueItemInterface
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\QueueItemView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContentHubQueueItemBase:: |
public | function |
Get a property on the QueueItem. Overrides ContentHubQueueItemInterface:: |
|
ImportQueueItem:: |
protected | property | Import the author. | |
ImportQueueItem:: |
protected | property | Import dependencies. | |
ImportQueueItem:: |
protected | property | Import the status. | |
ImportQueueItem:: |
protected | property | The entity UUID to import. | |
ImportQueueItem:: |
public | function | Construct the ImportQueueItem. |