Problem/Motivation

After adding a CTA Icons block to layout builder and saving you receive;

Twig\Error\SyntaxError: Unexpected token "name" of value "if" ("end of statement block" expected). in Twig\TokenStream->expect() (line 53 of modules/contrib/ixm_blocks/modules/ixm_blocks_cta_icons/templates/block--ixm-blocks-cta-icons.html.twig).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork ixm_blocks-3419387

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

AaronChristian created an issue. See original summary.

Mohd Sahzad made their first commit to this issue’s fork.

mohd sahzad’s picture

Status: Active » Needs review

  • AaronChristian committed cc5872ba on 1.0.x
    Issue #3419387: Twig\Error\SyntaxError: Unexpected token "name" of value...
aaronchristian’s picture

Status: Needs review » Needs work

@Mohd Unfortunately the MR did not fix the problem.

It actually is due to the foreach and if statement being combined in one statement.

Appreciate the work, but going to close the MR as this have been fixed now in 1.0.x

aaronchristian’s picture

Status: Needs work » Fixed
aaronchristian’s picture

Status: Fixed » Closed (fixed)
aaronchristian’s picture

Version: 1.0.x-dev » 1.0.5
Priority: Normal » Critical