SilverStripe\Assets\Shortcodes\FileShortcodeProvider::handle_shortcode
Replace "[file_link id=n]" shortcode with an anchor tag or link to the file.
Signature
public function handle_shortcode(array
$arguments,
string
$content,
ShortcodeParser
$parser,
string
$shortcode,
[array
$extra = ] )
Parameters
$arguments
—
array
- Arguments passed to the parser
$content
—
string
- Raw shortcode
$parser
—
object
- Parser
$shortcode
—
string
- Name of shortcode used to register this handler
$extra
—
array
- Extra arguments
Returns
- string
- Result of the handled shortcode