You are here

public function DocumentElement::getContent in Drupal 9

Returns document content.

Return value

string

1 call to DocumentElement::getContent()
DocumentElement::getText in core/tests/Drupal/Tests/DocumentElement.php

File

core/tests/Drupal/Tests/DocumentElement.php, line 33

Class

DocumentElement
Document element.

Namespace

Drupal\Tests

Code

public function getContent() {
  return trim($this
    ->getDriver()
    ->getContent());
}