You are here

public function WebformWizardPage::hidePage in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElement/WebformWizardPage.php \Drupal\webform\Plugin\WebformElement\WebformWizardPage::hidePage()

Hide webform wizard page.

Parameters

array $element: A webform wizard page element and its child elements.

Overrides WebformElementWizardPageInterface::hidePage

File

src/Plugin/WebformElement/WebformWizardPage.php, line 183

Class

WebformWizardPage
Provides a 'webform_wizard_page' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

public function hidePage(array &$element) {

  // Set #access to FALSE which will suppresses webform #required validation.
  WebformElementHelper::setPropertyRecursive($element, '#access', FALSE);
}