SilverStripe\Assets\Shortcodes\ImageShortcodeProvider::regenerate_shortcode
Regenerates "[image id=n]" shortcode with new src attribute prior to being edited within the CMS.
Signature
public function regenerate_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