public function ImportOptions::__construct in GatherContent 8.5
Same name and namespace in other branches
- 8.4 src/Import/ImportOptions.php \Drupal\gathercontent\Import\ImportOptions::__construct()
ImportOptions constructor.
File
- src/
Import/ ImportOptions.php, line 46
Class
- ImportOptions
- A class for storing and serializing the import/update options of a node.
Namespace
Drupal\gathercontent\ImportCode
public function __construct($publish = FALSE, $create_new_revision = FALSE, $new_status = NULL, $parent_menu_item = NULL) {
$this->createNewRevision = $create_new_revision;
$this->publish = $publish;
$this->newStatus = filter_var($new_status, FILTER_VALIDATE_INT);
$this->parentMenuItem = $parent_menu_item;
}