ShortcutSetStorageInterface

Defines an interface for shortcut_set entity storage classes. Hierarchy interface \Drupal\Core\Entity\EntityStorageInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityStorageInterfaceinterface \Drupal\shortcut\ShortcutSetStorageInterface File core/modules/shortcut/src/ShortcutSetStorageInterface.php, line 11 Namespace Drupal\shortcut Members Name Modifiers Type Description ConfigEntityStorageInterface::createFromStorageRecord public function Creates a configurati

ShortcutSetStorageInterface::assignUser

public ShortcutSetStorageInterface::assignUser(ShortcutSetInterface $shortcut_set, $account) Assigns a user to a particular shortcut set. Parameters \Drupal\shortcut\ShortcutSetInterface $shortcut_set: An object representing the shortcut set. $account: A user account that will be assigned to use the set. File core/modules/shortcut/src/ShortcutSetStorageInterface.php, line 21 Class ShortcutSetStorageInterface Defines an interface for shortcut_set entity storage classes. Namespace Drupal

ShortcutSetStorage::__construct

public ShortcutSetStorage::__construct(EntityTypeInterface $entity_info, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, ModuleHandlerInterface $module_handler, LanguageManagerInterface $language_manager) Constructs a ShortcutSetStorageController object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_info: The entity info for the entity type. \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service. \Drupal\Component\Uuid\UuidInter

ShortcutSetStorage::getDefaultSet

public ShortcutSetStorage::getDefaultSet(AccountInterface $account) Gets the default shortcut set for a given user account. Parameters \Drupal\Core\Session\AccountInterface $account: The user account whose default shortcut set will be returned. Return value \Drupal\shortcut\ShortcutSetInterface An object representing the default shortcut set. Overrides ShortcutSetStorageInterface::getDefaultSet File core/modules/shortcut/src/ShortcutSetStorage.php, line 111 Class ShortcutSetStorage Defin

ShortcutSetStorage::getAssignedToUser

public ShortcutSetStorage::getAssignedToUser($account) Get the name of the set assigned to this user. Parameters \Drupal\user\Entity\User $account: The user account. Return value string The name of the shortcut set assigned to this user. Overrides ShortcutSetStorageInterface::getAssignedToUser File core/modules/shortcut/src/ShortcutSetStorage.php, line 94 Class ShortcutSetStorage Defines a storage for shortcut_set entities. Namespace Drupal\shortcut Code public function getAssignedTo

ShortcutSetStorage::unassignUser

public ShortcutSetStorage::unassignUser($account) Unassigns a user from any shortcut set they may have been assigned to. The user will go back to using whatever default set applies. Parameters $account: A user account that will be removed from the shortcut set assignment. Return value bool TRUE if the user was previously assigned to a shortcut set and has been successfully removed from it. FALSE if the user was already not assigned to any set. Overrides ShortcutSetStorageInterface::unassignUs

ShortcutSetStorage::deleteAssignedShortcutSets

public ShortcutSetStorage::deleteAssignedShortcutSets(ShortcutSetInterface $entity) Delete shortcut sets assigned to users. Parameters \Drupal\shortcut\ShortcutSetInterface $entity: Delete the user assigned sets belonging to this shortcut. Overrides ShortcutSetStorageInterface::deleteAssignedShortcutSets File core/modules/shortcut/src/ShortcutSetStorage.php, line 62 Class ShortcutSetStorage Defines a storage for shortcut_set entities. Namespace Drupal\shortcut Code public function del

ShortcutSetStorage::countAssignedUsers

public ShortcutSetStorage::countAssignedUsers(ShortcutSetInterface $shortcut_set) Get the number of users who have this set assigned to them. Parameters \Drupal\shortcut\ShortcutSetInterface $shortcut_set: The shortcut to count the users assigned to. Return value int The number of users who have this set assigned to them. Overrides ShortcutSetStorageInterface::countAssignedUsers File core/modules/shortcut/src/ShortcutSetStorage.php, line 104 Class ShortcutSetStorage Defines a storage for

ShortcutSetStorage::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface Overrides EntityHandlerBase::$moduleHandler File core/modules/shortcut/src/ShortcutSetStorage.php, line 24 Class ShortcutSetStorage Defines a storage for shortcut_set entities. Namespace Drupal\shortcut Code protected $moduleHandler;

ShortcutSetStorage::assignUser

public ShortcutSetStorage::assignUser(ShortcutSetInterface $shortcut_set, $account) Assigns a user to a particular shortcut set. Parameters \Drupal\shortcut\ShortcutSetInterface $shortcut_set: An object representing the shortcut set. $account: A user account that will be assigned to use the set. Overrides ShortcutSetStorageInterface::assignUser File core/modules/shortcut/src/ShortcutSetStorage.php, line 73 Class ShortcutSetStorage Defines a storage for shortcut_set entities. Namespace