public function WebformElement::isInput in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformElement.php \Drupal\webform\Plugin\WebformElement\WebformElement::isInput()
Checks if the element carries a value.
Parameters
array $element: An element.
Return value
bool TRUE if the element carries a value.
Overrides WebformElementBase::isInput
File
- src/
Plugin/ WebformElement/ WebformElement.php, line 32
Class
- WebformElement
- Provides a 'generic' element. Used as a fallback.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function isInput(array $element) {
return !empty($element['#type']) && !in_array($element['#type'], [
'submit',
]) ? TRUE : FALSE;
}