LibraryCards
extends AbstractHelper
in package
LibraryCards view helper
Tags
Table of Contents
- $cardService : UserCardServiceInterface
- __construct() : mixed
- Constructor
- getCardsForUser() : array<string|int, UserCardEntityInterface>
- Get all library cards for the provided user.
Properties
$cardService
protected
UserCardServiceInterface
$cardService
Methods
__construct()
Constructor
public
__construct(UserCardServiceInterface $cardService) : mixed
Parameters
- $cardService : UserCardServiceInterface
-
User card database service
Return values
mixed —getCardsForUser()
Get all library cards for the provided user.
public
getCardsForUser(UserEntityInterface $user) : array<string|int, UserCardEntityInterface>
Parameters
- $user : UserEntityInterface
-
User to look up