Skip to content
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

DOC Document standardisation of extension hooks #558

Conversation

GuySartorelli
Copy link
Member

Core implementations of most extension hooks such as `updateCMSFields()` now have protected visibility. Formally they had public visibility which meant they could be called directly which was not how they were intended to be used. Extension hook implementations are still able to be declared public in project code, though it is recommended that all extension hook methods are declared protected in project code to follow best practice.
Core implementations of most extension hooks such as `updateCMSFields()` now have protected visibility. Formerly they had public visibility which meant they could be called directly which was not how they were intended to be used. Extension hook implementations are still able to be declared public in project code, though it is recommended that all extension hook methods are declared protected in project code to follow best practice.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an unrelated typo fix - "formally" changed to "formerly"

@GuySartorelli GuySartorelli marked this pull request as draft August 15, 2024 05:13
@GuySartorelli GuySartorelli force-pushed the pulls/6/standardise-extension-hooks branch 3 times, most recently from 6d06216 to 6ce2311 Compare August 19, 2024 01:38
@GuySartorelli GuySartorelli force-pushed the pulls/6/standardise-extension-hooks branch from 6ce2311 to f03a8c2 Compare August 19, 2024 01:57
@GuySartorelli GuySartorelli marked this pull request as ready for review August 22, 2024 02:40
@emteknetnz emteknetnz merged commit 9b76456 into silverstripe:6 Aug 27, 2024
4 checks passed
@emteknetnz emteknetnz deleted the pulls/6/standardise-extension-hooks branch August 27, 2024 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants