public function ShortcutSetStorageDecorator::countAssignedUsers in Devel 8.2
Same name and namespace in other branches
- 8.3 webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator::countAssignedUsers()
- 8 webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator::countAssignedUsers()
- 4.x webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator::countAssignedUsers()
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
- webprofiler/
src/ Entity/ Decorators/ Config/ ShortcutSetStorageDecorator.php, line 45
Class
- ShortcutSetStorageDecorator
- Class ShortcutSetStorageDecorator
Namespace
Drupal\webprofiler\Entity\Decorators\ConfigCode
public function countAssignedUsers(ShortcutSetInterface $shortcut_set) {
return $this
->getOriginalObject()
->countAssignedUsers($shortcut_set);
}