WidgetBase::handlesMultipleValues

protected WidgetBase::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().

File

core/lib/Drupal/Core/Field/WidgetBase.php, line 539

Class

WidgetBase
Base class for 'Field widget' plugin implementations.

Namespace

Drupal\Core\Field

Code

protected function handlesMultipleValues() {
  $definition = $this->getPluginDefinition();
  return $definition['multiple_values'];
}
doc_Drupal
2016-10-29 09:56:42
Comments
Leave a Comment

Please login to continue.