From ebdbbfd5955cf2ae3b3e26f660d0472971b2a58f Mon Sep 17 00:00:00 2001 From: chromos33 Date: Wed, 19 May 2021 19:16:27 +0200 Subject: [PATCH] Update 04_Shortcodes.md --- docs/en/02_Developer_Guides/05_Extending/04_Shortcodes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/02_Developer_Guides/05_Extending/04_Shortcodes.md b/docs/en/02_Developer_Guides/05_Extending/04_Shortcodes.md index bbc02fdf5..f9e654e62 100644 --- a/docs/en/02_Developer_Guides/05_Extending/04_Shortcodes.md +++ b/docs/en/02_Developer_Guides/05_Extending/04_Shortcodes.md @@ -63,7 +63,7 @@ class Page extends SiteTree 'MyShortCodeMethod' => 'HTMLText' ]; - public static function MyShortCodeMethod($arguments, $content = null, $parser = null, $tagName) + public static function MyShortCodeMethod($arguments, $content = null, $parser = null, $tagName = null) { return "" . $tagName . " " . $content . "; " . count($arguments) . " arguments."; }