PersonaRenderService
in package
Service that renders persona information based on the type.
Table of Contents
- getRandomPersonaColor() : string
- Return a (random) color.
- renderPersona() : array<string|int, mixed>
- Render the persona based on a type (small, medium, large)
Methods
getRandomPersonaColor()
Return a (random) color.
public
getRandomPersonaColor() : string
Tags
Return values
string —The random color.
renderPersona()
Render the persona based on a type (small, medium, large)
public
renderPersona(array<string|int, mixed> $userData[, string $type = 'small' ]) : array<string|int, mixed>
Parameters
- $userData : array<string|int, mixed>
-
The profile array as retrieved from the Graph API.
- $type : string = 'small'
-
The way we want to render the array.
Return values
array<string|int, mixed> —The render array for the profile.