diff --git a/core/modules/shortcut/shortcut.module b/core/modules/shortcut/shortcut.module index 696a3819401e54adb7ac942b56437ac4848d70bd..ba9c43db00553a76b080ad882c82de797a0ea3d4 100644 --- a/core/modules/shortcut/shortcut.module +++ b/core/modules/shortcut/shortcut.module @@ -227,7 +227,7 @@ function shortcut_default_set($account = NULL) { function shortcut_set_title_exists($title) { $sets = ShortcutSet::loadMultiple(); foreach ($sets as $set) { - if ($set->label == $title) { + if ($set->label() == $title) { return TRUE; } } diff --git a/core/modules/shortcut/src/Entity/ShortcutSet.php b/core/modules/shortcut/src/Entity/ShortcutSet.php index da603780eae857d151fea363517e308dd81dc239..f72b7d0fe01595635c692c1b8ae2f59135cd098e 100644 --- a/core/modules/shortcut/src/Entity/ShortcutSet.php +++ b/core/modules/shortcut/src/Entity/ShortcutSet.php @@ -49,14 +49,14 @@ class ShortcutSet extends ConfigEntityBase implements ShortcutSetInterface { * * @var string */ - public $id; + protected $id; /** * The human-readable name of the configuration entity. * * @var string */ - public $label; + protected $label; /** * {@inheritdoc}