You are here

protected function WebformDevelEntityFormApiBaseForm::initialize in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_devel/src/Form/WebformDevelEntityFormApiBaseForm.php \Drupal\webform_devel\Form\WebformDevelEntityFormApiBaseForm::initialize()

Initialize WebformDevelEntityFormApiBaseForm object.

File

modules/webform_devel/src/Form/WebformDevelEntityFormApiBaseForm.php, line 73

Class

WebformDevelEntityFormApiBaseForm
Export a webform's element to Form API (FAPI).

Namespace

Drupal\webform_devel\Form

Code

protected function initialize() {
  $translatable_properties = $this->elementManager
    ->getTranslatableProperties();
  $translatable_properties = array_combine($translatable_properties, $translatable_properties);
  unset($translatable_properties['default_value']);
  $this->translatableProperties = $translatable_properties;
}