public function WebformElementBase::hasProperty in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::hasProperty()
Determine if the element supports a specified property.
Parameters
string $property_name: An element's property name.
Return value
bool TRUE if the element supports a specified property.
Overrides WebformElementInterface::hasProperty
20 calls to WebformElementBase::hasProperty()
- Checkboxes::form in src/
Plugin/ WebformElement/ Checkboxes.php - Gets the actual configuration webform array to be built.
- DateBase::form in src/
Plugin/ WebformElement/ DateBase.php - Gets the actual configuration webform array to be built.
- EntityAutocomplete::hasMultipleValues in src/
Plugin/ WebformElement/ EntityAutocomplete.php - Checks if the element value has multiple values.
- NumericBase::prepare in src/
Plugin/ WebformElement/ NumericBase.php - Prepare an element to be rendered within a webform.
- OptionsBase::form in src/
Plugin/ WebformElement/ OptionsBase.php - Gets the actual configuration webform array to be built.
File
- src/
Plugin/ WebformElementBase.php, line 417
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function hasProperty($property_name) {
$default_properties = $this
->getDefaultProperties();
return array_key_exists($property_name, $default_properties);
}