You are here

public function WidgetBase::setWeight in Entity Browser 8.2

Same name and namespace in other branches
  1. 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_browser

Code

public function setWeight($weight) {
  $this->weight = $weight;
  return $this;
}