Skip to content

Commit

Permalink
Merge pull request #9947 from chromos33/4
Browse files Browse the repository at this point in the history
Update 04_Shortcodes.md
  • Loading branch information
dhensby authored May 19, 2021
2 parents b628698 + ebdbbfd commit 713a0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/02_Developer_Guides/05_Extending/04_Shortcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
Expand Down

0 comments on commit 713a0b4

Please sign in to comment.