Update 04_Shortcodes.md

This commit is contained in:
chromos33 2021-05-19 19:16:27 +02:00 committed by GitHub
parent b6286983b1
commit ebdbbfd595
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.";
}