-
Notifications
You must be signed in to change notification settings - Fork 11
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
[2.0] Rename bundle
to type
and deprecate functions/permissions that use bundle
.
#23
Comments
Work in progress locally (will push this week hopefully) but noting here that the label/machine name column(s) should track whatever is decided here, probably (for consistency): |
Just pushed these commits in a new branch for testing. @herbdool do you use Paragraphs? Would you be willing to help me test? |
@laryn sadly I'm not using Paragraphs. If you can't find anyone to help test I'll try to find some time in the near future. |
@laryn In general I'm for this idea as it brings them in parallel with nodes and entities that have types. 👍 The current PR seems to be addressing the UI references to bundles in favour of type 👍 I think this might lead to some less than ideal Developer Experiences [DX] though; 👎 For example the function That leaves a couple of options here;
Not sure what is the best way to go ???? the third option is probably best, but also the hardest. |
^^ that's what we've been doing in core. I think that this is the best option. |
@serundeputy @klonos I can probably be convinced. I was leaving it as is (just changing the UI) for the moment in the hopes that any potential future updates from the D7 module would apply more cleanly. Maybe I don't need to worry about that. |
I was trying this issue-23 branch and got an error when creating a new paragraph type:
|
Status: I think I'm going to leave Backdrop Paragraphs 1.x-1.x more or less as it is on Drupal 7 and begin these changes in Paragraphs 1.x-2.x. (I don't envision D7 Paragraphs getting a lot of attention and massive changes, but these updates will make a lot of changes to the Backdrop version.) Also planning to follow the third option listed by @serundeputy and thumbed up by @klonos. |
bundle
to type
and add icon/description to Paragraph types
bundle
to type
and add icon/description to Paragraph typesbundle
to type
and deprecate functions/permissions that use bundle
.
EDIT/CLEAN UP:
The term "bundle" has been changed in front-facing places but it remains to clean up the code (function names, permission names, etc.) and deprecate the old "bundle" versions in the same way Backdrop core:
paragraphs_bundle_load
calls callparagraphs_type_load
and markparagraphs_bundle_load
as deprecatedThe text was updated successfully, but these errors were encountered: