3 namespace Drupal\shortcut;
5 use Drupal\Core\Entity\ContentEntityInterface;
8 * Provides an interface defining a shortcut entity.
10 interface ShortcutInterface extends ContentEntityInterface {
13 * Returns the title of this shortcut.
16 * The title of this shortcut.
18 public function getTitle();
21 * Sets the title of this shortcut.
23 * @param string $title
24 * The title of this shortcut.
26 * @return \Drupal\shortcut\ShortcutInterface
27 * The called shortcut entity.
29 public function setTitle($title);
32 * Returns the weight among shortcuts with the same depth.
35 * The shortcut weight.
37 public function getWeight();
40 * Sets the weight among shortcuts with the same depth.
43 * The shortcut weight.
45 * @return \Drupal\shortcut\ShortcutInterface
46 * The called shortcut entity.
48 public function setWeight($weight);
51 * Returns the URL object pointing to the configured route.
53 * @return \Drupal\Core\Url
56 public function getUrl();