public function YamlFormElementBase::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 YamlFormElementInterface::hasMultipleValues
5 calls to YamlFormElementBase::hasMultipleValues()
- EntityAutocomplete::hasMultipleValues in src/
Plugin/ YamlFormElement/ EntityAutocomplete.php - Checks if element value has multiple values.
- OptionsBase::hasMultipleValues in src/
Plugin/ YamlFormElement/ OptionsBase.php - Checks if element value has multiple values.
- YamlFormElementBase::getConfigurationFormProperty in src/
YamlFormElementBase.php - Get configuration property value.
- YamlFormElementBase::getRelatedTypes in src/
YamlFormElementBase.php - Get related element types.
- YamlFormElementBase::prepare in src/
YamlFormElementBase.php - Prepare an element to be rendered within a form.
3 methods override YamlFormElementBase::hasMultipleValues()
- EntityAutocomplete::hasMultipleValues in src/
Plugin/ YamlFormElement/ EntityAutocomplete.php - Checks if element value has multiple values.
- OptionsBase::hasMultipleValues in src/
Plugin/ YamlFormElement/ OptionsBase.php - Checks if element value has multiple values.
- YamlFormManagedFileBase::hasMultipleValues in src/
Plugin/ YamlFormElement/ YamlFormManagedFileBase.php - Checks if element value has multiple values.
File
- src/
YamlFormElementBase.php, line 287
Class
- YamlFormElementBase
- Provides a base class for a form element.
Namespace
Drupal\yamlformCode
public function hasMultipleValues(array $element) {
return $this->pluginDefinition['multiple'];
}