public function WidgetBase::setWeight in Entity Browser 8.2
Same name and namespace in other branches
- 8 src/WidgetBase.php \Drupal\entity_browser\WidgetBase::setWeight()
Sets the widget's weight.
Parameters
int $weight: New plugin weight.
Return value
\Drupal\entity_browser\WidgetInterface This object.
Overrides WidgetInterface::setWeight
File
- src/
WidgetBase.php, line 267
Class
- WidgetBase
- Base class for widget plugins.
Namespace
Drupal\entity_browserCode
public function setWeight($weight) {
$this->weight = $weight;
return $this;
}