3 namespace Drupal\shortcut;
5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
8 * Provides an interface defining a shortcut set entity.
10 interface ShortcutSetInterface extends ConfigEntityInterface {
13 * Resets the link weights in a shortcut set to match their current order.
15 * This function can be used, for example, when a new shortcut link is added
16 * to the set. If the link is added to the end of the array and this function
17 * is called, it will force that link to display at the end of the list.
19 * @return \Drupal\shortcut\ShortcutSetInterface
22 public function resetLinkWeights();
25 * Returns all the shortcuts from a shortcut set sorted correctly.
27 * @return \Drupal\shortcut\ShortcutInterface[]
28 * An array of shortcut entities.
30 public function getShortcuts();