FieldWidget::$weight

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/Annotation/FieldWidget.php \Drupal\Core\Field\Annotation\FieldWidget::weight
  2. 10 core/lib/Drupal/Core/Field/Annotation/FieldWidget.php \Drupal\Core\Field\Annotation\FieldWidget::weight
  3. 11.x core/lib/Drupal/Core/Field/Annotation/FieldWidget.php \Drupal\Core\Field\Annotation\FieldWidget::weight

An integer to determine the weight of this widget relative to other widgets in the Field UI when selecting a widget for a given field.

Type: int optional

File

core/lib/Drupal/Core/Field/Annotation/FieldWidget.php, line 78

Class

FieldWidget
Defines a FieldWidget annotation object.

Namespace

Drupal\Core\Field\Annotation

Code

public $weight = NULL;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.