When adding the 'Print link' field to a view, a 'Broken handler' error is shown.

This is because the hander id of the field-specific views handler is wrong. The correct id is entity_print_link per entity_print_views/src/Plugin/views/field/PrintLink.php whereas the id that is searched for is entity_print_views_link as can be seen in entity_print_views.module, which is for the area plugin, and already exposed via entity_print_views.views.inc

Resolution:
Replace the id 'entity_print_views_link' in entity_print_views.module with the correct id: 'entity_print_link'.

Comments

Neograph734 created an issue. See original summary.

neograph734’s picture

Status: Active » Needs review
StatusFileSize
new689 bytes
krina.addweb’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new97.51 KB
new82.81 KB
new79.47 KB
new213.03 KB

@Neograph734, Thanks for explaining the error & providing the patch, I reviewed it using simplytest.me & followed the same steps & got the error, which is now clear using your patch. PFA

lamp5’s picture

Patch works, thanks!

tame4tex’s picture

Simple patch that fixes the issue. Would be good to get this merged in as the handler is unusable without this fix.

larowlan’s picture

Status: Reviewed & tested by the community » Fixed

Fixed

  • larowlan committed 36afd54 on 8.x-2.x authored by Neograph734
    Issue #3075927 by Neograph734: The entity specific 'print link' view...

Status: Fixed » Closed (fixed)

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