function StandardImportObject::__construct in Lingotek Translation 8
Constructor @author Unknown
Parameters
string $title This is what will become the title of the post/page: when the document is imported into WP
string $content This is what will become the body of the post/page: when the document is imported into WP
bool $error captures if there was an error in preparing the document:
Return value
void just sets the variables
File
- src/
Form/ StandardImportObject.php, line 26 - Used to hold all important information about a post or page to be imported @author Unknown
Class
- StandardImportObject
- @file Used to hold all important information about a post or page to be imported @author Unknown
Namespace
Drupal\lingotek\FormCode
function __construct($title, $content, $error = false) {
$this->title = $title;
$this->content = $content;
$this->error = $error;
}