You are here

public function WebformSubmission::setCurrentPage in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/WebformSubmission.php \Drupal\webform\Entity\WebformSubmission::setCurrentPage()

Sets the submission's current page.

Parameters

string $current_page: The submission's current page.

Return value

$this

Overrides WebformSubmissionInterface::setCurrentPage

File

src/Entity/WebformSubmission.php, line 382

Class

WebformSubmission
Defines the WebformSubmission entity.

Namespace

Drupal\webform\Entity

Code

public function setCurrentPage($current_page) {
  $this
    ->set('current_page', $current_page);
  return $this;
}