You are here

protected function CKEditor5TestTrait::getEditorDataAsDom in Drupal 10

Gets CKEditor 5 instance data as a PHP DOMDocument.

Return value

\DOMDocument The result of parsing CKEditor 5's data into a PHP DOMDocument.

File

core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php, line 23

Class

CKEditor5TestTrait
Provides methods to test CKEditor 5.

Namespace

Drupal\Tests\ckeditor5\Traits

Code

protected function getEditorDataAsDom() : \DOMDocument {
  return Html::load($this
    ->getEditorDataAsHtmlString());
}