You are here

public static function WebformElementHelper::property in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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.

15 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.

... See full list

File

src/Utility/WebformElementHelper.php, line 83

Class

WebformElementHelper
Helper class webform element methods.

Namespace

Drupal\webform\Utility

Code

public static function property($key) {
  return $key && is_string($key) && $key[0] == '#';
}