FilterFormat::$weight

Same name and namespace in other branches
  1. 9 core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::weight
  2. 8.9.x core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::weight
  3. 10 core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::weight

Weight of this format in the text format selector.

The first/lowest text format that is accessible for a user is used as default format.

Type: int

File

core/modules/filter/src/Entity/FilterFormat.php, line 91

Class

FilterFormat
Represents a text format.

Namespace

Drupal\filter\Entity

Code

protected $weight = 0;

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