protected function SelectOrOtherWidgetBase::isMultiple in Select (or other) 8.3
Helper method to determine if the field supports multiple values.
Return value
bool
2 calls to SelectOrOtherWidgetBase::isMultiple()
- SelectOrOtherWidgetBase::formElement in src/
Plugin/ Field/ FieldWidget/ SelectOrOtherWidgetBase.php - Returns the form for a single field widget.
- Widget::getEmptyOption in src/
Plugin/ Field/ FieldWidget/ Widget.php - Returns the empty option to add to the list of options, if any.
File
- src/
Plugin/ Field/ FieldWidget/ SelectOrOtherWidgetBase.php, line 64 - Contains \Drupal\select_or_other\Plugin\Field\FieldWidget\SelectOrOtherWidgetBase.
Class
- SelectOrOtherWidgetBase
- Base class for the 'select_or_other_*' widgets.
Namespace
Drupal\select_or_other\Plugin\Field\FieldWidgetCode
protected function isMultiple() {
return $this->fieldDefinition
->getFieldStorageDefinition()
->isMultiple();
}