function CommentTestBase::setCommentForm

Sets the value governing whether the comment form is on its own page.

Parameters

boolean $enabled: TRUE if the comment form should be displayed on the same page as the comments; FALSE if it should be displayed on its own page.

10 calls to CommentTestBase::setCommentForm()

File

drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php, line 232
Contains Drupal\comment\Tests\CommentTestBase.

Class

CommentTestBase
Provides setup and helper methods for comment tests.

Namespace

Drupal\comment\Tests

Code

function setCommentForm($enabled) {
  $this
    ->setCommentSettings('comment_form_location', $enabled ? COMMENT_FORM_BELOW : COMMENT_FORM_SEPARATE_PAGE, 'Comment controls ' . ($enabled ? 'enabled' : 'disabled') . '.');
}