You are here

protected function CshsWidget::handlesMultipleValues in Client-side Hierarchical Select 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/Field/FieldWidget/CshsWidget.php \Drupal\cshs\Plugin\Field\FieldWidget\CshsWidget::handlesMultipleValues()
  2. 8.2 src/Plugin/Field/FieldWidget/CshsWidget.php \Drupal\cshs\Plugin\Field\FieldWidget\CshsWidget::handlesMultipleValues()

Returns whether the widget handles multiple values.

Return value

bool TRUE if a single copy of formElement() can handle multiple field values, FALSE if multiple values require separate copies of formElement().

Overrides WidgetBase::handlesMultipleValues

1 call to CshsWidget::handlesMultipleValues()
CshsWidget::formElement in src/Plugin/Field/FieldWidget/CshsWidget.php
Returns the form for a single field widget.

File

src/Plugin/Field/FieldWidget/CshsWidget.php, line 141

Class

CshsWidget
Provides "cshs" field widget.

Namespace

Drupal\cshs\Plugin\Field\FieldWidget

Code

protected function handlesMultipleValues() : bool {
  return (bool) $this
    ->getSetting('save_lineage');
}