function DocumentElement::hasContent
Check whether document has specified content.
Parameters
string $content:
Return value
bool
File
- 
              core/
tests/ Drupal/ Tests/ DocumentElement.php, line 51  
Class
- DocumentElement
 - Document element.
 
Namespace
Drupal\TestsCode
public function hasContent($content) {
  return $this->has('named', [
    'content',
    $content,
  ]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.