EntityReferenceSelection::$weight

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/Annotation/EntityReferenceSelection.php \Drupal\Core\Entity\Annotation\EntityReferenceSelection::weight
  2. 8.9.x core/lib/Drupal/Core/Entity/Annotation/EntityReferenceSelection.php \Drupal\Core\Entity\Annotation\EntityReferenceSelection::weight
  3. 10 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.