SectionStorage::$weight

Same name in other branches
  1. 8.9.x core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::weight
  2. 10 core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::weight
  3. 11.x core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::weight

The plugin weight, optional (defaults to 0).

When an entity with layout is rendered, section storage plugins are checked, in order of their weight, to determine which one should be used to render the layout.

Type: int

File

core/modules/layout_builder/src/Annotation/SectionStorage.php, line 34

Class

SectionStorage
Defines a Section Storage type annotation object.

Namespace

Drupal\layout_builder\Annotation

Code

public $weight = 0;

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