You are here

protected function WebformElementBase::defineTranslatableProperties in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::defineTranslatableProperties()

Define an element's translatable properties.

Return value

array An array containing an element's translatable properties.

16 calls to WebformElementBase::defineTranslatableProperties()
DateTime::defineTranslatableProperties in src/Plugin/WebformElement/DateTime.php
Define an element's translatable properties.
OptionsBase::defineTranslatableProperties in src/Plugin/WebformElement/OptionsBase.php
Define an element's translatable properties.
ProcessedText::defineTranslatableProperties in src/Plugin/WebformElement/ProcessedText.php
Define an element's translatable properties.
Table::defineTranslatableProperties in src/Plugin/WebformElement/Table.php
Define an element's translatable properties.
TextBase::defineTranslatableProperties in src/Plugin/WebformElement/TextBase.php
Define an element's translatable properties.

... See full list

15 methods override WebformElementBase::defineTranslatableProperties()
DateTime::defineTranslatableProperties in src/Plugin/WebformElement/DateTime.php
Define an element's translatable properties.
OptionsBase::defineTranslatableProperties in src/Plugin/WebformElement/OptionsBase.php
Define an element's translatable properties.
ProcessedText::defineTranslatableProperties in src/Plugin/WebformElement/ProcessedText.php
Define an element's translatable properties.
Table::defineTranslatableProperties in src/Plugin/WebformElement/Table.php
Define an element's translatable properties.
TextBase::defineTranslatableProperties in src/Plugin/WebformElement/TextBase.php
Define an element's translatable properties.

... See full list

File

src/Plugin/WebformElementBase.php, line 322

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

protected function defineTranslatableProperties() {
  return [
    'title',
    'label',
    'help',
    'help_title',
    'more',
    'more_title',
    'description',
    'field_prefix',
    'field_suffix',
    'required_error',
    'unique_error',
    'admin_title',
    'admin_notes',
    'placeholder',
    'markup',
    'test',
    'default_value',
    'header_label',
    'add_more_button_label',
    'add_more_input_label',
    'no_items_message',
  ];
}