Problem/Motivation

After install upgrade_status we got the following message from modules/contrib/search_api_autocomplete/templates/search-api-autocomplete-suggestion.html.twig

Since twig/twig 3.12: Twig Filter "spaceless" is deprecated. See https://drupal.org/node/3071078.

Steps to reproduce

Install upgrade_status and analyze the module

Proposed resolution

Replace spaceless by a valid twig filter

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

eduardo morales alberti’s picture

Title: Since twig/twig 3.12: Twig Filter "spaceless" is deprecated. » Drupal 11 - Since twig/twig 3.12: Twig Filter "spaceless" is deprecated.

drunken monkey made their first commit to this issue’s fork.

drunken monkey’s picture

Status: Active » Needs review

Thanks for reporting, makes sense to get ahead of this and fix it right away. Seems easy enough, after a bit of digging (since, helpfully, no-one just tells you how this can be resolved).
This should do it, please test/review!

  • drunken monkey committed 78fdccc3 on 8.x-1.x
    [#3529145] chore: Fixed our Twig template to not use the "spaceless"...
drunken monkey’s picture

Status: Needs review » Fixed

Merged. Thanks again!

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

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

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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