-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add loading of automatic ORM field labels to i18nTextCollector #10686
Conversation
$classes = ClassInfo::classes_for_file($filePath); | ||
foreach ($classes as $class) { | ||
// Skip non-implementing classes | ||
if (!class_exists($class ?? '')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the null coalesce needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know. I have copied the base of the method from https://github.com/silverstripe/silverstripe-framework/blob/4.12/src/i18n/TextCollection/i18nTextCollector.php#L818.
Since this is an enhancement I feel like this should target |
It's an enhancement for 4, but really it's just restoring the old 3.x functionality. Happy to rebase to 4 if you prefer? |
Adding functionality should be done in a minor release, even if that functionality was available in a previous major version of the module. Or in other words: yes please target |
done, see #10688 |
No description provided.