Instead of storing the classes in a separate config file, we should use the third party settings.

Patch almost works. Only problem is that the main block doesn't go through hook_block_view_alter(), and the config block entity is not available in preprocess, which I'm not sure is the right thing to do.

Comments

berdir’s picture

StatusFileSize
new4.86 KB
tim.plunkett’s picture

$block = Block::load($variables['elements']['#id']);
might work

In #1989568: Remove block config ID from being used as an HTML ID or template suggestion, some guy named Berdir removed the block config entity from persisting through to the entity_view hooks or preprocess :)

berdir’s picture

Yeah, I've heard of that guy ;)

That one did it to make page_manager work.

I guess loading it like that works, yes. That's essentially what the code before did as well, was hoping that I could avoid another load, but it's not that bad.

berdir’s picture

Status: Needs review » Fixed

Committed.

  • Berdir committed f61c141 on 8.0.x-1.x
    Issue #2425675 by Berdir: Use block third party settings to store...

Status: Fixed » Closed (fixed)

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