You are here

public function WebformElementBase::getTranslatableProperties in Webform 8.5

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

Get translatable properties.

Return value

array An associative array containing translatable element properties.

Overrides WebformElementInterface::getTranslatableProperties

File

src/Plugin/WebformElementBase.php, line 372

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function getTranslatableProperties() {
  if (!isset($this->translatableProperties)) {
    $properties = $this
      ->defineTranslatableProperties();
    $definition = $this
      ->getPluginDefinition();
    \Drupal::moduleHandler()
      ->alter('webform_element_translatable_properties', $properties, $definition);
    $this->translatableProperties = array_unique($properties);
  }
  return $this->translatableProperties;
}