You are here

public function MobileNumber::getDefaultProperties in Mobile Number 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/WebformElement/MobileNumber.php \Drupal\mobile_number\Plugin\WebformElement\MobileNumber::getDefaultProperties()

Get default properties.

Return value

array An associative array containing default element properties.

Overrides WebformElementBase::getDefaultProperties

File

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

Class

MobileNumber
Provides a 'mobile_number' element.

Namespace

Drupal\mobile_number\Plugin\WebformElement

Code

public function getDefaultProperties() {
  return parent::getDefaultProperties() + [
    'multiple' => FALSE,
    'multiple__header_label' => '',
    'default_country' => 'US',
    'countries' => [],
    'mn_placeholder' => 'Phone number',
    'as_link' => FALSE,
  ];
}