Merge pull request #9947 from chromos33/4

Update 04_Shortcodes.md
This commit is contained in:
Daniel Hensby 2021-05-19 19:24:31 +01:00 committed by GitHub
commit 713a0b4a67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 "<em>" . $tagName . "</em> " . $content . "; " . count($arguments) . " arguments.";
}