You are here

public function ShortcutSetStorageDecorator::countAssignedUsers in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator::countAssignedUsers()
  2. 8 webprofiler/src/Entity/Decorators/Config/ShortcutSetStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator::countAssignedUsers()
  3. 8.2 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\Config

Code

public function countAssignedUsers(ShortcutSetInterface $shortcut_set) {
  return $this
    ->getOriginalObject()
    ->countAssignedUsers($shortcut_set);
}