Problem/Motivation

When placing the "canonical" link. I have a fatal error because, no pattern and variant are defined yet.

So the following code, https://git.drupalcode.org/project/ui_patterns_entity_links/-/blob/8.x-1...

    $pattern = $config['pattern'];
    $config['pattern_variant'] = $config['variants'][$pattern];

is failing because $pattern is empty.

I have commented those two lines and then I had been able to configure the block.

Once placed, when editing it is ok, but when placing not.

Comments

Grimreaper created an issue. See original summary.

pdureau’s picture

Assigned: Unassigned » pdureau

Thanks, I will add this test:

    if ($pattern = $config['pattern']) {
      $config['pattern_variant'] = $config['variants'][$pattern];
    }

  • pdureau committed 99bea2d on 8.x-1.x
    Issue #3280918: Fatal error when placing a block
    
pdureau’s picture

Assigned: pdureau » Unassigned
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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