function DocumentElement::getContent

Same name in other branches
  1. 9 core/tests/Drupal/Tests/DocumentElement.php \Drupal\Tests\DocumentElement::getContent()
  2. 11.x core/tests/Drupal/Tests/DocumentElement.php \Drupal\Tests\DocumentElement::getContent()

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 40

Class

DocumentElement
Document element.

Namespace

Drupal\Tests

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.