You are here

public function YamlFormElementBase::getTranslatableProperties in YAML Form 8

Get translatable properties.

Return value

array An associative array containing translatable element properties.

Overrides YamlFormElementInterface::getTranslatableProperties

7 calls to YamlFormElementBase::getTranslatableProperties()
OptionsBase::getTranslatableProperties in src/Plugin/YamlFormElement/OptionsBase.php
Get translatable properties.
ProcessedText::getTranslatableProperties in src/Plugin/YamlFormElement/ProcessedText.php
Get translatable properties.
Table::getTranslatableProperties in src/Plugin/YamlFormElement/Table.php
Get translatable properties.
Textarea::getTranslatableProperties in src/Plugin/YamlFormElement/Textarea.php
Get translatable properties.
YamlFormLikert::getTranslatableProperties in src/Plugin/YamlFormElement/YamlFormLikert.php
Get translatable properties.

... See full list

7 methods override YamlFormElementBase::getTranslatableProperties()
OptionsBase::getTranslatableProperties in src/Plugin/YamlFormElement/OptionsBase.php
Get translatable properties.
ProcessedText::getTranslatableProperties in src/Plugin/YamlFormElement/ProcessedText.php
Get translatable properties.
Table::getTranslatableProperties in src/Plugin/YamlFormElement/Table.php
Get translatable properties.
Textarea::getTranslatableProperties in src/Plugin/YamlFormElement/Textarea.php
Get translatable properties.
YamlFormLikert::getTranslatableProperties in src/Plugin/YamlFormElement/YamlFormLikert.php
Get translatable properties.

... See full list

File

src/YamlFormElementBase.php, line 198

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

public function getTranslatableProperties() {
  return [
    'title',
    'description',
    'field_prefix',
    'field_suffix',
    'required_error',
    'admin_title',
    'placeholder',
    'markup',
    'test',
  ];
}