BadgeShareRegistry
in package
Registry of badge share platforms. Returns platform instances without a case statement.
Table of Contents
Properties
- $platforms : array<string|int, BadgeSharePlatform>
Methods
- getPlatforms() : array<string|int, BadgeSharePlatform>
- Get all configured share platforms.
- renderShareLinks() : string
- Render share links for a badge.
Properties
$platforms
private
static array<string|int, BadgeSharePlatform>
$platforms
Methods
getPlatforms()
Get all configured share platforms.
public
static getPlatforms() : array<string|int, BadgeSharePlatform>
Return values
array<string|int, BadgeSharePlatform>renderShareLinks()
Render share links for a badge.
public
static renderShareLinks(string $assertUrl, string $badgeTitle[, string $courseTitle = '' ][, string|null $badgeGuid = null ]) : string
Parameters
- $assertUrl : string
-
Badge assertion URL
- $badgeTitle : string
-
Badge title for share text
- $courseTitle : string = ''
-
Optional course/service name
- $badgeGuid : string|null = null
-
Minted badge GUID for LinkedIn click tracking
Return values
string —HTML fragment of share links