protected static function WebformOtherBase::isMultiple in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Element/WebformOtherBase.php \Drupal\webform\Element\WebformOtherBase::isMultiple()
Determine if the webform element contains multiple values.
Parameters
array $element: A webform element.
Return value
bool TRUE if the webform element contains multiple values.
3 calls to WebformOtherBase::isMultiple()
- WebformOtherBase::convertDefaultValueToElementValue in src/
Element/ WebformOtherBase.php - Convert default value to element value.
- WebformOtherBase::processValue in src/
Element/ WebformOtherBase.php - Processed other element's submitted value.
- WebformOtherBase::validateWebformOther in src/
Element/ WebformOtherBase.php - Validates an other element.
File
- src/
Element/ WebformOtherBase.php, line 324
Class
- WebformOtherBase
- Base class for webform other element.
Namespace
Drupal\webform\ElementCode
protected static function isMultiple(array $element) {
return !empty($element['#multiple']) || static::$type === 'checkboxes' ? TRUE : FALSE;
}