public function WebformElementBase::getTranslatableProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 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 328
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
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;
}