You are here

public property FieldFormatter::$weight in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/Annotation/FieldFormatter.php \Drupal\Core\Field\Annotation\FieldFormatter::weight

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

Type: int optional

File

core/lib/Drupal/Core/Field/Annotation/FieldFormatter.php, line 73

Class

FieldFormatter
Defines a FieldFormatter annotation object.

Namespace

Drupal\Core\Field\Annotation

Code

public $weight = NULL;