You are here

public function Webform::getNumberOfWizardPages in Webform 8.5

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

Get the number of wizard pages.

Return value

int The number of wizard pages.

Overrides WebformInterface::getNumberOfWizardPages

1 call to Webform::getNumberOfWizardPages()
Webform::hasWizardPages in src/Entity/Webform.php
Determine if the webform has multi-step form wizard pages.

File

src/Entity/Webform.php, line 873

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function getNumberOfWizardPages() {
  $this
    ->initElements();
  return count($this->elementsWizardPages);
}