diff -u b/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php b/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php --- b/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php +++ b/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php @@ -46,22 +46,25 @@ class ShortcutSet extends ConfigEntityBase implements ShortcutSetInterface { /** - * @TODO this is still public because ConfigEntityBase::getExportProperties() - * uses reflection to pick out the public properties to export. + * The unique ID of the ShortcutSet. + * + * @var string */ - public $id; + public $id = NULL; /** - * @TODO this is still public because ConfigEntityBase::getExportProperties() - * uses reflection to pick out the public properties to export. + * The label for this ShortcutSet. + * + * @var string */ - public $label; + protected $label; /** - * @TODO this is still public because ConfigEntityBase::getExportProperties() - * uses reflection to pick out the public properties to export. + * A list of MenuLink uuids which make up this ShortcutSet. + * + * @var array */ - public $links = array(); + protected $links = array(); /** * {@inheritdoc} @@ -162,2 +165,21 @@ } + + /** + * Overrides \Drupal\Core\Config\Entity\ConfigEntityBase::getExportProperties(); + */ + public function getExportProperties() { + $names = array( + 'status', + 'label', + 'links', + 'id', + 'uuid', + 'langcode', + ); + $properties = array(); + foreach ($names as $name) { + $properties[$name] = $this->get($name); + } + return $properties; + } }