You are here

public function Webform::getNumberOfWizardPages in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 874

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

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