You are here

protected function View::defineDefaultProperties in Webform 6.x

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

Define an element's default properties.

Return value

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

Overrides WebformMarkupBase::defineDefaultProperties

File

src/Plugin/WebformElement/View.php, line 26

Class

View
Provides a hidden 'view' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  return [
    'name' => '',
    'display_id' => '',
    'arguments' => [],
    'display_on' => WebformElementDisplayOnInterface::DISPLAY_ON_BOTH,
  ] + parent::defineDefaultProperties();
}