private function markTemporaryParagraphs($document)
    {
        /** @var \DOMElement $paragraph */
        foreach ($document->getElementsByTagName('paragraph') as $paragraph) {
            if ($this->isTemporary($paragraph)) {
                $paragraph->setAttribute('ez-temporary', 1);
            }
        }
    }
private function markTemporaryParagraphs($document)
    {
        /** @var \DOMElement $paragraph */
        foreach ($document->getElementsByTagName('paragraph') as $paragraph) {
            if ($this->isTemporary($paragraph)) {
                $paragraph->setAttribute('ez-temporary', 1);
            }
        }
    }
private function markTemporaryParagraphs ( $ document ) { /** @var \DOMElement $paragraph */ foreach ( $ document -> getElementsByTagName ( 'paragraph' ) as $ paragraph ) { if ( $ this -> isTemporary ( $ paragraph ) ) { $ paragraph -> setAttribute ( 'ez-temporary' , 1 ) ; } } }
Marks temporary paragraph with the `ez-temporary` attribute. Those
paragraph are simply ignored when generating the HTML5 code of the field.

@param \DOMDocument $document
Marks temporary paragraph with the ez - temporary attribute . Those paragraph are simply ignored when generating the HTML5 code of the field .