You are here

protected function WebformTranslationConfigManager::getWebformElementProperty in Webform 6.x

Get flattened webform element properties from the webform_ui.module.

Parameters

string $type: The webform element type.

Return value

array The webform element type's properties from as a flattened associative array key by property names.

3 calls to WebformTranslationConfigManager::getWebformElementProperty()
WebformTranslationConfigManager::buildConfigWebformFormDefaultPropertyElement in src/WebformTranslationConfigManager.php
Build config webform form default property element.
WebformTranslationConfigManager::buildConfigWebformFormImageSelectPropertyElement in src/WebformTranslationConfigManager.php
Build config webform form image select property element.
WebformTranslationConfigManager::buildConfigWebformFormOptionsPropertyElement in src/WebformTranslationConfigManager.php
Build config webform form options property element.

File

src/WebformTranslationConfigManager.php, line 977

Class

WebformTranslationConfigManager
Defines a class to translate webform config.

Namespace

Drupal\webform

Code

protected function getWebformElementProperty($type, $property_name) {
  $property_key = ltrim($property_name, '#');
  $properties = $this
    ->getWebformElementProperties($type);
  return isset($properties[$property_key]) ? $properties[$property_key] : NULL;
}