public function SelectOrOtherWidgetBase::hasValue in Select (or other) 8.3
Return whether $items of formElement method contains any data.
Return value
bool
1 call to SelectOrOtherWidgetBase::hasValue()
- 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 148 - 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
public function hasValue() {
return $this->has_value;
}