You are here

public static function Robohash::getBackgroundsMap in Avatar Kit 8

Backgrounds mapped to GET values.

Return value

array An array of GET values keyed by background.

Overrides RobohashInterface::getBackgroundsMap

1 call to Robohash::getBackgroundsMap()
Robohash::getUrl in avatars_robohash/src/Robohash.php
Gets the URL for the avatar.

File

avatars_robohash/src/Robohash.php, line 54

Class

Robohash
Implements the Robohash.org API.

Namespace

Drupal\avatars_robohash

Code

public static function getBackgroundsMap() {
  return [
    'transparent' => '',
    'places' => 'bg1',
    'patterns' => 'bg2',
  ];
}