Module version(s) affected
4.2.3
Description
Currently, the Versioned extension is hard coded in the Link model which makes it impractical to configure.
private static array $extensions = [
Versioned::class,
];
How to reproduce
Code snippet to check if Versioned extension is present.
echo Link::has_extension(Versioned::class) ? 'yes' : 'no' . PHP_EOL;
Possible Solution
Remove Versioned extension from the model.
Then either keep it like that or add it to a yaml config with a named key so it can be overridden. Depends on what the module default should be.
Additional Context
This module should not force versioned or non-versioned links, both should be supported.
Validations
PRs
Module version(s) affected
4.2.3
Description
Currently, the
Versionedextension is hard coded in theLinkmodel which makes it impractical to configure.How to reproduce
Code snippet to check if Versioned extension is present.
Possible Solution
Remove
Versionedextension from the model.Then either keep it like that or add it to a yaml config with a named key so it can be overridden. Depends on what the module default should be.
Additional Context
This module should not force versioned or non-versioned links, both should be supported.
Validations
silverstripe/installer(with any code examples you've provided)PRs