function ShortcutSetInterface::resetLinkWeights

Same name in other branches
  1. 9 core/modules/shortcut/src/ShortcutSetInterface.php \Drupal\shortcut\ShortcutSetInterface::resetLinkWeights()
  2. 8.9.x core/modules/shortcut/src/ShortcutSetInterface.php \Drupal\shortcut\ShortcutSetInterface::resetLinkWeights()
  3. 11.x core/modules/shortcut/src/ShortcutSetInterface.php \Drupal\shortcut\ShortcutSetInterface::resetLinkWeights()

Resets the link weights in a shortcut set to match their current order.

This function can be used, for example, when a new shortcut link is added to the set. If the link is added to the end of the array and this function is called, it will force that link to display at the end of the list.

Return value

$this The shortcut set.

1 method overrides ShortcutSetInterface::resetLinkWeights()
ShortcutSet::resetLinkWeights in core/modules/shortcut/src/Entity/ShortcutSet.php
Resets the link weights in a shortcut set to match their current order.

File

core/modules/shortcut/src/ShortcutSetInterface.php, line 22

Class

ShortcutSetInterface
Provides an interface defining a shortcut set entity.

Namespace

Drupal\shortcut

Code

public function resetLinkWeights();

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