public static function YamlFormOtherBase::isMultiple in YAML Form 8
Determine if the form element contains multiple values.
Parameters
array $element: A form element.
Return value
bool TRUE if the form element contains multiple values.
2 calls to YamlFormOtherBase::isMultiple()
- YamlFormOtherBase::validateYamlFormOther in src/
Element/ YamlFormOtherBase.php - Validates an other element.
- YamlFormOtherBase::valueCallback in src/
Element/ YamlFormOtherBase.php - Determines how user input is mapped to an element's #value property.
File
- src/
Element/ YamlFormOtherBase.php, line 67
Class
- YamlFormOtherBase
- Base class for form other element.
Namespace
Drupal\yamlform\ElementCode
public static function isMultiple(array $element) {
return !empty($element['#multiple']) || static::$type == 'checkboxes' ? TRUE : FALSE;
}