Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello --
Adding a new custom entity or editing an existing one always uses the admin theme, regardless of whether you've unchecked the setting to use the admin theme when editing or creating content.
Thanks in advance for any help or feedback. I'd like to help with a patch but I'm pretty new to D8 code and am not sure where to look for this.
Comment | File | Size | Author |
---|---|---|---|
#11 | eck-2927308-11.patch | 1.7 KB | Matroskeen |
#11 | Screen Shot on 2020-06-21 at 13:47:02.png | 113.57 KB | Matroskeen |
#3 | use-admin-theme-on-eck-content-2927308-3.patch | 1.91 KB | gerzenstl |
Comments
Comment #2
gerzenstl CreditAttribution: gerzenstl at 42mate commentedComment #3
gerzenstl CreditAttribution: gerzenstl at 42mate commentedTo fix this issue I used same approach used for node entity.
Comment #4
gerzenstl CreditAttribution: gerzenstl at 42mate commentedComment #6
MatroskeenComment #7
nnevillComment #8
ceiadra CreditAttribution: ceiadra commentedThanks for working on this! I tried applying the patch, but it didn't fix the issue. This also seems to be the opposite problem of the related issue linked in #4 -- does it maybe make more sense to work on one branch or the other? I wound up installing the dev branch because I needed the patch for Automatic Entity Label support.
Comment #9
gerzenstl CreditAttribution: gerzenstl at 42mate commented@ceiadra, It worked fine when I tested before submitting the patch. I was using the last version available in the repository of the module.
I'll retest the patch tonight. Thanks!
Comment #10
DamienMcKennaPlease check the latest -dev snapshot; a new option was added to the Admin -> Appearance page for controlling this option specifically for ECK entities.
Comment #11
MatroskeenI believe this issue is no longer exists.
It was fixed in #2859737: Use admin theme on bundle/ID/edit.
As was mentioned previously, the new option is available on "Appearance" page (/admin/appearance).
I'm adding a patch with test that proves this functionality.
Comment #13
MatroskeenI think we can mark this one as "Fixed".
I was curious to run tests for D.9 and PHP 7.3+, but they seem to fail because of completely unrelated reasons.
Here is a follow-up issue: #3153688: Tests fail on PHP 7.3+ and Drupal 9.0+.
Thanks!