EntityReferenceSelection::$weight

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/Annotation/EntityReferenceSelection.php \Drupal\Core\Entity\Annotation\EntityReferenceSelection::weight
  2. 10 core/lib/Drupal/Core/Entity/Annotation/EntityReferenceSelection.php \Drupal\Core\Entity\Annotation\EntityReferenceSelection::weight
  3. 11.x core/lib/Drupal/Core/Entity/Annotation/EntityReferenceSelection.php \Drupal\Core\Entity\Annotation\EntityReferenceSelection::weight

The weight of the plugin in its group.

This property is used to select the "best" plugin within a group.

Type: int

File

core/lib/Drupal/Core/Entity/Annotation/EntityReferenceSelection.php, line 80

Class

EntityReferenceSelection
Defines an EntityReferenceSelection plugin annotation object.

Namespace

Drupal\Core\Entity\Annotation

Code

public $weight;

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