ShortcutSetStorageDecorator.php in Devel 8
File
webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php
View source
<?php
namespace Drupal\webprofiler\Entity\Decorators\Config;
use Drupal\Core\Session\AccountInterface;
use Drupal\shortcut\ShortcutSetInterface;
use Drupal\shortcut\ShortcutSetStorageInterface;
class ShortcutSetStorageDecorator extends ConfigEntityStorageDecorator implements ShortcutSetStorageInterface {
public function assignUser(ShortcutSetInterface $shortcut_set, $account) {
$this
->getOriginalObject()
->assignUser($shortcut_set, $account);
}
public function unassignUser($account) {
return $this
->getOriginalObject()
->unassignUser($account);
}
public function deleteAssignedShortcutSets(ShortcutSetInterface $entity) {
$this
->getOriginalObject()
->deleteAssignedShortcutSets($entity);
}
public function getAssignedToUser($account) {
return $this
->getOriginalObject()
->getAssignedToUser($account);
}
public function countAssignedUsers(ShortcutSetInterface $shortcut_set) {
return $this
->getOriginalObject()
->countAssignedUsers($shortcut_set);
}
public function getDefaultSet(AccountInterface $account) {
return $this
->getOriginalObject()
->getDefaultSet($account);
}
}