public function WebformElementBase::hasWrapper in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::hasWrapper()
Checks if the element has a wrapper.
Parameters
array $element: An element.
Return value
bool TRUE if the element has a wrapper.
Overrides WebformElementInterface::hasWrapper
1 call to WebformElementBase::hasWrapper()
- WebformElementBase::prepare in src/
Plugin/ WebformElementBase.php - Prepare an element to be rendered within a webform.
File
- src/
Plugin/ WebformElementBase.php, line 553
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function hasWrapper(array $element) {
return $this
->hasProperty('wrapper_attributes');
}