You are here

protected function WebformTelephone::defineDefaultProperties in Webform 6.x

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

Define an element's default properties.

Return value

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

Overrides WebformCompositeBase::defineDefaultProperties

File

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

Class

WebformTelephone
Provides a 'telephone' (composite) element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  $properties = [
    'title_display' => '',
    'phone__international' => TRUE,
    'phone__international_initial_country' => '',
  ] + parent::defineDefaultProperties();
  unset($properties['flexbox']);
  return $properties;
}