Skip to content

Kirby 3.9.8

twitter()

Builds a Twitter link

twitter(string $username, ?string $text = null, ?string $title = null, ?string $class = null): string

Parameters

Name Type Default
$username * string
$text string|null null
$title string|null null
$class string|null null

Return type

string

Example

<?= twitter('getkirby') ?>
<?= twitter('getkirby', 'Follow Kirby on Twitter') ?>