Reference

Guide

kirbytag()

Makes it possible to use any defined Kirbytag as standalone function

kirbytag(string|array $type, string $value = null, array $attr = [ ]): string

Parameters

Name Type Default Description
$type string|array
$value string null
$attr array [ ]

Return type

string

Example

echo kirbytag([
  'link'  => 'blog/my-article',
  'text'  => 'Go to my blog article'
]);

// will manually do the same as
// (link: blog/my-article text: Go to my blog article)
// in KirbyText

Source code

kirby/config/helpers.php#L406