I think that instead of adding entity support by request, a more generic approach should be made by adding support to all entities including custom entities.

Comments

elpino created an issue. See original summary.

weseze’s picture

I will try and add that.

Only problem I see is a permission problem. If the approach is very generic it might be very difficult to generate permissions. Perhaps I will start without permissions.

  • weseze committed 2dd6612 on 8.x-1.x
    Issue #3032240 by weseze: Support for every entity type including custom...
weseze’s picture

I have implemented generic support for any entity. Please try it out and open up follow up tickets if you have issues. Any feedback is welcome ;)

URL to use: /entity_pdf/{entity_type}/{entity}/{view_mode}
Example: /entity_pdf/node/5/pdf

The old URL for nodes only still work.

weseze’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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