DocumentationViewer::set_edit_link
Sets the mapping between a entity name and the link for the end user to jump into editing the documentation.
Some variables are replaced: - %version% - %entity% - %path% - %lang% For example to provide an edit link to the framework module in github: <code> DocumentationViewer::set_edit_link( 'framework', 'https://github.com/silverstripe/%entity%/edit/%version%/docs/%lang%/%path%', $opts )); </code>
Signature
public function set_edit_link(
$module,
$link,
[array
$options = ] )
Parameters
$module
—$link
—$options
— array