Surprised the ProjectBot didn't pick this one up, but we need a D11 release for this module.

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

markie created an issue. See original summary.

markie’s picture

Update info.yml to accept D11 and tested in Drupalpod. Still need to run through upgrade_status

markie’s picture

gitpod /workspace/drupalpod (main) $ drush upgrade_status:analyze table_of_contents
Notice: running 'drush upgrade_status:analyze table_of_contents' in ddev
 [notice] Processing /var/www/html/web/modules/contrib/table_of_contents.

================================================================================
Table of contents, --
Scanned on Wed, 01/15/2025 - 21:56

FILE:
web/modules/contrib/table_of_contents/src/Plugin/Block/TextLongFieldTocBlock.php

STATUS         LINE                           MESSAGE                           
--------------------------------------------------------------------------------
Check manually 36   Providing context definitions via the "context" key is      
                    deprecated in Drupal 8.7.x and will be removed before Drupal
                    9.0.0. Use the "context_definitions" key instead.           
--------------------------------------------------------------------------------

Failed to execute command drush upgrade_status:analyze table_of_contents: exit status 3
Failed to run exec_dir drush upgrade_status:analyze table_of_contents; error=exit status 1
markie’s picture

Status: Active » Needs review

Updated the deprecation found by upgrade_status however I was not able to follow the instructions on the project page to create a TOC block. There is no option as shown in the demonstration. That being said, this module does enable in Drupal 10 and 11....

eojthebrave made their first commit to this issue’s fork.

eojthebrave’s picture

Status: Needs review » Fixed

I needed this to work with Drupal 11 for a project so cleaned up the remaining issues, and added some basic tests to ensure it remains functional.

The biggest change is allowing the symfony/css-selector to install ^7 so that it's compatible with drupal/core:^11. The new tests prove that doing so doesn't break anything.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.