public static function WebformElementHelper::property in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Utility/WebformElementHelper.php \Drupal\webform\Utility\WebformElementHelper::property()
Checks if the key is string and a property.
Parameters
string $key: The key to check.
Return value
bool TRUE of the key is string and a property., FALSE otherwise.
14 calls to WebformElementHelper::property()
- OverrideWebformVariant::applyVariant in src/
Plugin/ WebformVariant/ OverrideWebformVariant.php - Apply variant to the webform.
- OverrideWebformVariant::validateConfigurationForm in src/
Plugin/ WebformVariant/ OverrideWebformVariant.php - Form validation handler.
- Table::formatHtmlItem in src/
Plugin/ WebformElement/ Table.php - Format an element's value as HTML.
- WebformCompositeBase::initializeCompositeElementsRecursive in src/
Element/ WebformCompositeBase.php - Initialize a composite's elements recursively.
- WebformCompositeBase::initializeCompositeElementsRecursive in src/
Plugin/ WebformElement/ WebformCompositeBase.php - Initialize a composite's elements recursively.
File
- src/
Utility/ WebformElementHelper.php, line 83
Class
- WebformElementHelper
- Helper class webform element methods.
Namespace
Drupal\webform\UtilityCode
public static function property($key) {
return $key && is_string($key) && $key[0] == '#';
}