Mercurial > hg > isophonics-drupal-site
view core/modules/shortcut/src/ShortcutSetInterface.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\shortcut; use Drupal\Core\Config\Entity\ConfigEntityInterface; /** * Provides an interface defining a shortcut set entity. */ interface ShortcutSetInterface extends ConfigEntityInterface { /** * 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 \Drupal\shortcut\ShortcutSetInterface * The shortcut set. */ public function resetLinkWeights(); /** * Returns all the shortcuts from a shortcut set sorted correctly. * * @return \Drupal\shortcut\ShortcutInterface[] * An array of shortcut entities. */ public function getShortcuts(); }