I believe this builder is a holdover from the original panels in d8 code: #2340999: Implement "display renderer" plugin type (now called "display builder")

Since we implemented our own IPE builder, is the editor display builder even needed anymore? The code is empty and nothing seems to be referencing it.

We will need to write an update hook that changes them to another builder.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

japerry created an issue. See original summary.

dsnopek’s picture

We shouldn't let users select it. But it'd be nice to still have it and use it for laying out blocks in the admin UI - this would allow us to show the blocks in the actual layout that the panel is using, rather than just having them on a flat list.

EclipseGc’s picture

This class currently does NOTHING. It just extends the base class (literally just extends it). At this point, if we intend to add additional features to an administrative backend, I think Standard's the place to do it. No?

Eclipse

dsnopek’s picture

This class currently does NOTHING. It just extends the base class (literally just extends it).

Right, it was never finished, because it was unclear how the admin UI's would work. We could remove it and then create a new issue to add it back and have it actually do something? :-)

At this point, if we intend to add additional features to an administrative backend, I think Standard's the place to do it. No?

No, I think there's still a place for the Editor builder (just as there was in D7 and older) to add any extra markup and fields for the admin UI. However, it should never actually be selectable by users for a saved Panels display.

EclipseGc’s picture

Ok, so maybe illuminate more what you're thinking here? I'm definitely confused.

Eclipse

dsnopek’s picture

Check out the Editor renderer in D7. I'm thinking we'd do the same thing in D8.

For now, I'd be fine with this issue removing the Editor builder, and then making a new issue to fully implement it.

  • japerry committed 7f19b7d on 8.x-3.x
    Issue #2757331 by japerry: Remove EditorDisplayBuilder
    
japerry’s picture

Status: Active » Fixed

Removed. this should be a good UX improvement for new users to Panels.

dsnopek’s picture

Status: Fixed » Active

Er, now that Panels is -beta, shouldn't this have come with some way for handling sites where the user may have selected "Editor"? I'm not sure we can do an update hook (because Panels isn't in control of its storage) but maybe something when the PanelsDisplayVariant is being initialized to check for "editor" and replace it with "standard"?

giuliovale’s picture

After this commit there are some:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "editor" plugin does not exist.

Any help to fix this?

Edit: ok simple fix:
- restore EditorDisplayBuilder.php
- change settings to standard for wrong page
- delete EditorDisplayBuilder.php

+1 for #9

japerry’s picture

Looks like we'll look in the DisplayBuilderManager and swap in 'standard' for 'editor' before it creates the instance.

dsnopek’s picture

Since this affects BC, we need to fix it before the next -beta release

japerry’s picture

japerry’s picture

Status: Active » Needs review
FileSize
1.05 KB

After talking with Kris and David, I think this is probably the best approach to avoiding the editor plugin not found error.

  • japerry committed 7513128 on 8.x-3.x
    Issue #2757331 by japerry, EclipseGC, dsnopek: Provide backwards...

Status: Needs review » Needs work

The last submitted patch, 14: 2757331-redirect-editor-builder-14.patch, failed testing.

japerry’s picture

Status: Needs work » Fixed

Pushed this fix up in prep for the next beta.

mlhess’s picture

Issue tags: +MWDS2016

Status: Fixed » Closed (fixed)

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