function CommentTestBase::commentContactInfoAvailable
Checks whether the commenter's contact information is displayed.
Return value
bool Contact info is available.
File
-
core/
modules/ comment/ src/ Tests/ CommentTestBase.php, line 353
Class
- CommentTestBase
- Provides setup and helper methods for comment tests.
Namespace
Drupal\comment\TestsCode
public function commentContactInfoAvailable() {
return preg_match('/(input).*?(name="name").*?(input).*?(name="mail").*?(input).*?(name="homepage")/s', $this->getRawContent());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.