Problem/Motivation
See #3566536: [meta] eliminate core .module files
Proposed resolution
According to "Drupal core backend backwards compatibility and internal API policy", section Underscore-prefixed functions and methods
Functions or methods with an underscore prefix (e.g. _some_function()) are considered internal, and may be used to avoid name collisions when backporting protected methods critical or major bug fixes. Extending code should not call these functions or methods directly nor use the underscore prefix for added methods.
Move _block_content_has_reusable_condition() to a protected method. No need fr depreciation.
Remaining tasks
None.
User interface changes
None.
Introduced terminology
None.
API changes
None.
Data model changes
None.
Issue fork drupal-3566776
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3566776-has-reusable-condition
changes, plain diff MR !14288
Comments
Comment #2
claudiu.cristeaComment #4
claudiu.cristeaReady
Comment #5
nicxvan commentedThanks!
This is an underscore function so no deprecation is necessary and protected makes sense.
I searched gitlab and contrib and there are no usages outside of full drupal core clones.
The comment mentions https://www.drupal.org/project/drupal/issues/2984930 which is still active so no need to change anything.
Looks good to me!
Comment #6
larowlanCommitted to main and backported to 11.x - thanks!