You are here

public function ImportOptions::__construct in GatherContent 8.4

Same name and namespace in other branches
  1. 8.5 src/Import/ImportOptions.php \Drupal\gathercontent\Import\ImportOptions::__construct()

ImportOptions constructor.

File

src/Import/ImportOptions.php, line 59

Class

ImportOptions
A class for storing and serializing the import/update options of a node.

Namespace

Drupal\gathercontent\Import

Code

public function __construct($node_update_method = NodeUpdateMethod::ALWAYS_UPDATE, $publish = FALSE, $create_new_revision = FALSE, $new_status = NULL, $parent_menu_item = NULL, $operation_uuid = NULL) {
  $this->nodeUpdateMethod = $node_update_method;
  $this->createNewRevision = $create_new_revision;
  $this->publish = $publish;
  $this->newStatus = filter_var($new_status, FILTER_VALIDATE_INT);
  $this->parentMenuItem = $parent_menu_item;
  $this->operationUuid = $operation_uuid;
}