ElggEntity::hasIcon PHP Method

hasIcon() public method

Returns if the entity has an icon of the passed type.
public hasIcon ( string $size, string $type = 'icon' ) : boolean
$size string The size of the icon
$type string The name of the icon. e.g., 'icon', 'cover_photo'
return boolean
    public function hasIcon($size, $type = 'icon')
    {
        return _elgg_services()->iconService->hasIcon($this, $size, $type);
    }