FieldFormatter::$weight
Same name in other branches
- 9 core/lib/Drupal/Core/Field/Annotation/FieldFormatter.php \Drupal\Core\Field\Annotation\FieldFormatter::weight
- 8.9.x core/lib/Drupal/Core/Field/Annotation/FieldFormatter.php \Drupal\Core\Field\Annotation\FieldFormatter::weight
- 11.x core/lib/Drupal/Core/Field/Annotation/FieldFormatter.php \Drupal\Core\Field\Annotation\FieldFormatter::weight
An integer to determine the weight of this formatter.
Weight is relative to other formatter in the Field UI when selecting a formatter for a given field instance.
This property is optional and it does not need to be declared.
Type: int
File
-
core/
lib/ Drupal/ Core/ Field/ Annotation/ FieldFormatter.php, line 76
Class
- FieldFormatter
- Defines a FieldFormatter annotation object.
Namespace
Drupal\Core\Field\AnnotationCode
public $weight = NULL;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.