public function OptionsBase::hasMultipleValues in YAML Form 8
Checks if element value has multiple values.
Parameters
array $element: An element.
Return value
bool TRUE if element value has multiple values.
Overrides YamlFormElementBase::hasMultipleValues
2 calls to OptionsBase::hasMultipleValues()
- OptionsBase::getTableColumn in src/
Plugin/ YamlFormElement/ OptionsBase.php - Get element's table column(s) settings.
- OptionsBase::setDefaultValue in src/
Plugin/ YamlFormElement/ OptionsBase.php - Set an element's default value using saved data.
2 methods override OptionsBase::hasMultipleValues()
- YamlFormTableSelectSort::hasMultipleValues in src/
Plugin/ YamlFormElement/ YamlFormTableSelectSort.php - Checks if element value has multiple values.
- YamlFormTableSort::hasMultipleValues in src/
Plugin/ YamlFormElement/ YamlFormTableSort.php - Checks if element value has multiple values.
File
- src/
Plugin/ YamlFormElement/ OptionsBase.php, line 133
Class
- OptionsBase
- Provides a base 'options' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
public function hasMultipleValues(array $element) {
return isset($element['#multiple']) ? $element['#multiple'] : parent::hasMultipleValues($element);
}