getGravatarUrl() public static method

Size of the image: * The default size is 32px, and it can be anywhere between 1px up to 2048px. * If requested any value above the allowed range, then the maximum is applied. * If requested any value bellow the minimum, then the default is applied. Default image: * It can be an URL to an image. * Or one of built in options that Gravatar has. See Email::getGravatarBuiltInImages(). * If none is defined then a built in default is used. See Email::getGravatarBuiltInDefaultImage().
public static getGravatarUrl ( string $email, integer $size = 32, string $defaultImage = 'identicon' ) : null | string
$email string
$size integer
$defaultImage string
return null | string
Example #1
0
 /**
  * @dataProvider getEmptyProvider
  * @param $input
  */
 public function testGetGravatarUrlWithEmptyEmails($input)
 {
     is(null, Email::getGravatarUrl($input));
 }