You are here

protected function WebformWizardPage::defineDefaultProperties in Webform 8.5

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

Define an element's default properties.

Return value

array An associative array contain an the element's default properties.

Overrides Details::defineDefaultProperties

File

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

Class

WebformWizardPage
Provides a 'webform_wizard_page' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  $properties = [
    'title' => '',
    'open' => FALSE,
    'prev_button_label' => '',
    'next_button_label' => '',
    // Attributes.
    'attributes' => [],
    // Submission display.
    'format' => $this
      ->getItemDefaultFormat(),
    'format_html' => '',
    'format_text' => '',
    'format_attributes' => [],
  ] + $this
    ->defineDefaultBaseProperties();
  unset($properties['flex']);
  return $properties;
}