class PersonaRenderService

Service that renders persona information based on the type.

Methods

string
getRandomPersonaColor()

Return a (random) color.

array
renderPersona(array $userData, string $type = 'small')

Render the persona based on a type (small, medium, large)

Details

at line 43
string getRandomPersonaColor()

Return a (random) color.

at line 23
array renderPersona(array $userData, string $type = 'small')

Render the persona based on a type (small, medium, large)

Parameters

array $userData

The profile array as retrieved from the Graph API.

string $type

The way we want to render the array.

Return Value

array

The render array for the profile.