constant FIELD_BEHAVIOR_DEFAULT

Value for field API concerning widget default and multiple value settings.

When used in a widget default context, indicates the widget accepts default values. When used in a multiple value context for a widget that allows the input of one single field value, indicates that the widget will be repeated for each value input.

See also

hook_field_widget_info()

Related topics

3 uses of FIELD_BEHAVIOR_DEFAULT
FieldInfo::prepareInstance in drupal/core/modules/field/lib/Drupal/field/FieldInfo.php
Prepares an instance definition for the current run-time context.
FieldInstanceEditForm::buildForm in drupal/core/modules/field_ui/lib/Drupal/field_ui/Form/FieldInstanceEditForm.php
Form constructor.
field_behaviors_widget in drupal/core/modules/field/field.info.inc
Determines the behavior of a widget with respect to an operation.

File

drupal/core/modules/field/field.module, line 106
Attach custom data fields to Drupal entities.

Code

const FIELD_BEHAVIOR_DEFAULT = 0x2;