Problem/Motivation

Hello project maintainers,

This is an automated issue to help make this module compatible with Drupal 10.

To read more about this effort by the Drupal Association, please read: The project update bot is being refreshed to support Drupal 10 readiness of contributed projects

Patches will periodically be added to this issue that remove Drupal 10 deprecated API uses. To stop further patches from being posted, change the status to anything other than Active, Needs review, Needs work or Reviewed and tested by the community. Alternatively, you can remove the "ProjectUpdateBotD10" tag from the issue to stop the bot from posting updates.

The patches will be posted by the Project Update Bot official user account. This account will not receive any issue credit contributions for itself or any company.

\

Issue fork closeblock-3353366

Command icon 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:

Comments

Abhay Sharma created an issue. See original summary.

Abhay Sharma’s picture

Issue summary: View changes
shivam_tiwari’s picture

Assigned: Unassigned » shivam_tiwari

shivam_tiwari’s picture

Assigned: shivam_tiwari » Unassigned
Status: Needs work » Needs review

Abhay Sharma’s picture

Hi shivam_tiwari,

I have removed the core: 8.x from the info.yml file which core:8.x is not required in Drupal 10
added core version requirement: in the info.yml file on 3353366-automated-drupal-10 branch

I have installed the module in Drupal 10 now it looks compatible with Drupal 10 but I can't see the close button output in the Drupal block.

Abhay Sharma’s picture

Status: Needs review » Active
Abhay Sharma’s picture

joseph.olstad’s picture

joseph.olstad’s picture

The automated D10 changes didn't come in because the default branch is "master" and the "master" branch doesn't contain a symfony based Drupal module.
see #3363683: Change the default branch of closeblock to 8.x-1.x

joseph.olstad’s picture

drush upgrade_status:analyze closeblock
 [notice] Processing /home/ide/project/docroot/modules/contrib/closeblock.

================================================================================
Close block,  8.x-1.0
Scanned on ven 02/06/2023 - 17:55

FILE: modules/contrib/closeblock/closeblock.libraries.yml

STATUS         LINE                           MESSAGE                           
--------------------------------------------------------------------------------
Check manually 0    The 'closeblock' library is depending on a deprecated       
                    library. The core/jquery.cookie asset library is deprecated 
                    in Drupal 9.0.0 and will be removed in Drupal 10.0.0. Use   
                    the core/js-cookie library instead. See                     
                    https://www.drupal.org/node/3104677                         
--------------------------------------------------------------------------------
Check manually 0    The 'closeblock' library is depending on a deprecated       
                    library. The core/jquery.once asset library is deprecated in
                    Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the  
                    core/once library instead. See                              
                    https://www.drupal.org/node/3158256                         
--------------------------------------------------------------------------------

FILE: modules/contrib/closeblock/closeblock.info.yml

STATUS         LINE                           MESSAGE                           
--------------------------------------------------------------------------------
Check manually 0    Value of core_version_requirement: ^8 || ^9 is not          
                    compatible with the next major version of Drupal core. See  
                    https://drupal.org/node/3070687.                            
--------------------------------------------------------------------------------

srdtwc’s picture

For anyone looking for a similar module that is D10 compatible check out https://www.drupal.org/project/collapsiblock

savkaviktor16@gmail.com’s picture

Version: 8.x-1.x-dev » 8.x-1.0
StatusFileSize
new3.04 KB
sahilgidwani’s picture

Assigned: Unassigned » sahilgidwani
sahilgidwani’s picture

StatusFileSize
new3.29 KB

We need to remove the core key also in info.yml, removed the core key and update the patch.

sahilgidwani’s picture

StatusFileSize
new3.37 KB
sahilgidwani’s picture

Status: Active » Needs review

Please review the patch added in comment 17

joseph.olstad’s picture

Bump, yet again

joseph.olstad’s picture

note, if you upgrade to the D10 compatible version of radix, you may end up missing a block id which wil prevent this module from doing what it is supposed to do.
#3114611: Block id is removed in the block component
there's a patch I'm using there.

With that said, the patches above still aren't working.
once doesn't behave the same as jquery once. Cookie and strict mode may be interefering also.

joseph.olstad’s picture

Ok patch 17, I will test this again ASAP
If this passes manual tests I will cut a release