You are here

public function LinkInterface::setWeight in Colossal Menu 8

Same name and namespace in other branches
  1. 2.x src/LinkInterface.php \Drupal\colossal_menu\LinkInterface::setWeight()

Sets the weight.

Parameters

int $weight: The weight.

Return value

\Drupal\colossal_menu\LinkInterface Return this.

1 method overrides LinkInterface::setWeight()
Link::setWeight in src/Entity/Link.php
Sets the weight.

File

src/LinkInterface.php, line 36

Class

LinkInterface
Provides an interface for defining Link entities.

Namespace

Drupal\colossal_menu

Code

public function setWeight($weight);