You are here

public static function Robohash::getBackgrounds in Avatar Kit 8

A list of valid backgrounds.

Return value

array An array of background labels keyed by background.

Overrides RobohashInterface::getBackgrounds

1 call to Robohash::getBackgrounds()
Robohash::setBackground in avatars_robohash/src/Robohash.php
Set the background.

File

avatars_robohash/src/Robohash.php, line 43

Class

Robohash
Implements the Robohash.org API.

Namespace

Drupal\avatars_robohash

Code

public static function getBackgrounds() {
  return [
    'transparent' => 'Transparent',
    'places' => 'Places',
    'patterns' => 'Patterns',
  ];
}