SilverStripe\Assets\Shortcodes\ImageShortcodeProvider::handle_shortcode
Replace"[image id=n]" shortcode with an image reference.
Permission checks will be enforced by the file routing itself.
Signature
public function handle_shortcode(array
$args,
string
$content,
ShortcodeParser
$parser,
string
$shortcode,
[array
$extra = ] )
Parameters
$args
— 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