Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In order to add certain colorbox gallery options available for other modules such as Video Embed Field module, we had to make gallery id generator code snippet a service so that it can be reusable.
Proposed resolution
Create new class to build the gallery id.
Add that class as a service.
Remaining tasks
Review
User interface changes
No changes
API changes
No changes
Data model changes
No changes
Comment | File | Size | Author |
---|---|---|---|
#8 | Captura de tela de 2020-04-23 12-59-25.png | 168.12 KB | ilgnerfagundes |
#8 | Captura de tela de 2020-04-23 13-01-56.png | 133.43 KB | ilgnerfagundes |
#7 | 2935266-7.patch | 5.48 KB | nitesh624 |
| |||
#3 | build-gallery-id-review-1.patch | 5.69 KB | pasan.gamage |
build-gallery-id.patch | 5.55 KB | pasan.gamage | |
Comments
Comment #2
larowlanThese aren't used anymore, so can be removed
Needs a docblock
Need comments
needs to include type hints, short comment and comments
missing
public
visibility keywordComment #3
pasan.gamage CreditAttribution: pasan.gamage at PreviousNext commentedcode review
Comment #4
larowlanComment #5
Neslee Canil PintoPatch Failed to apply.
Comment #6
nitesh624Comment #7
nitesh624Reroll the patch
Comment #8
ilgnerfagundes CreditAttribution: ilgnerfagundes at CI&T commentedPatch applies correctly
Comment #9
KapilV CreditAttribution: KapilV as a volunteer and at OpenSense Labs commented@nitesh624, thanks
This patch helps me.
Comment #10
nitesh624Comment #12
Neslee Canil PintoCommitted. thanks👍🏻