W3cubDocs

/Drupal 8

public property 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;

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!Annotation!FieldFormatter.php/property/FieldFormatter::weight/8.1.x