function FormatConverter::__construct in Lingotek Translation 8
Constructor Sets up the FormatConverter object so it can be converted
@author Unkown
Parameters
object $source_doc The document that needs to be converted and then imported:
string $content The content portion of the document -- This is what becomes: the body of the WP post/page
string $format The format of the file. The extension of the document: is used to choose the right function to convert to standard
Return value
void This builds an object that is then converted to wp import
File
- src/
Form/ FormatConverter.php, line 44
Class
Namespace
Drupal\lingotek\FormCode
function __construct($source_doc, $content, $format) {
$this->source_doc = $source_doc;
$this->content = $content;
$this->format = $format;
}