You are here

public function WebformWizardPage::getElementStateOptions in Webform 8.5

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

Get an element's supported states as options.

Return value

array An array of element states.

Overrides WebformElementBase::getElementStateOptions

File

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

Class

WebformWizardPage
Provides a 'webform_wizard_page' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

public function getElementStateOptions() {
  return [
    'visible' => $this
      ->t('Visible'),
    'invisible' => $this
      ->t('Hidden'),
  ];
}