The "Print link" field no longer exists in Views to add for printing an entity

Created on 23 March 2025, 4 months ago

Problem/Motivation

Drupal 11 - The Entity Print Views module no longer has the field that can be added to a view for printing an entity.

Steps to reproduce

In Drupal 11, install the Entity Print and Entity Print Views modules, create a view displaying entities, and try to add the Print link field. You won't be able to add it because the field no longer exists.

Those who upgrade from Drupal 10 to Drupal 11 and already have this field added to their views will see a "Broken handler" message.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.15

Component

Code

Created by

🇭🇷Croatia milosr Croatia, Montenegro

Live updates comments and jobs are added and updated live.
  • views

    Involves, uses, or integrates with views. In Drupal 8 core, use the “VDC” tag instead.

Sign in to follow issues

Comments & Activities

  • Issue created by @milosr
  • 🇮🇳India sorabh.v6 Indore

    Starting to work on the issue.

  • Assigned to sorabh.v6
  • Status changed to Postponed: needs info 10 days ago
  • 🇊🇺Australia jannakha Brisbane!

    @milosr can you provide more information and screenshots?

    I've had entity print on view to print each node as Custom Text since Drupal 8 (now Drupal 10.5):
    <a href="/print/pdf/node/{{ nid }}" title="download pdf for {{ title_2 }}"><span class="file file--mime-application-pdf file--application-pdf"> </span></a>

    Do you have another module? or custom code?

  • I had the same problem after D11 upgrade, Broken/missing handler.

    Temporary I added the content by id and created a custom text field to print like this format.

  • 🇊🇺Australia jannakha Brisbane!

    @eszszabo thanks for the screenshot, but it doesn't really help with which handler is missing.
    Do you have a screenshot of D10 to compare to?
    what's the name of the handler which is missing? (you can see it in configuration yml of the view)

  • These are the screenshots from D10:


    And these are the related fields with broken handlers from the yml of the view:

    display_options:
    fields:
    entity_print_node:
    id: entity_print_node
    table: node
    field: entity_print_node
    relationship: field_report_reference
    group_type: group
    admin_label: PDF
    entity_type: node
    plugin_id: entity_print_link
    label: ''
    exclude: true
    alter:
    alter_text: false
    text: '

    {{ entity_print_node }}

    '
    make_link: false
    path: ''
    absolute: false
    external: false
    replace_spaces: false
    path_case: none
    trim_whitespace: false
    alt: ''
    rel: ''
    link_class: ''
    prefix: ''
    suffix: ''
    target: ''
    nl2br: false
    max_length: 0
    word_boundary: true
    ellipsis: true
    more_link: false
    more_link_text: ''
    more_link_path: ''
    strip_tags: false
    trim: false
    preserve_tags: ''
    html: false
    element_type: ''
    element_class: ''
    element_label_type: ''
    element_label_class: ''
    element_label_colon: false
    element_wrapper_type: ''
    element_wrapper_class: ''
    element_default_classes: true
    empty: ''
    hide_empty: false
    empty_zero: false
    hide_alter_empty: true
    text: PDF
    export_type: pdf
    open_new_window: false
    entity_print_node_1:
    id: entity_print_node_1
    table: node
    field: entity_print_node
    relationship: field_report_reference
    group_type: group
    admin_label: Word
    entity_type: node
    plugin_id: entity_print_link
    label: ''
    exclude: true
    alter:
    alter_text: false
    text: '

    {{ entity_print_node_1 }}

    '
    make_link: false
    path: ''
    absolute: false
    external: false
    replace_spaces: false
    path_case: none
    trim_whitespace: false
    alt: ''
    rel: ''
    link_class: ''
    prefix: ''
    suffix: ''
    target: ''
    nl2br: false
    max_length: 0
    word_boundary: true
    ellipsis: true
    more_link: false
    more_link_text: ''
    more_link_path: ''
    strip_tags: false
    trim: false
    preserve_tags: ''
    html: false
    element_type: ''
    element_class: ''
    element_label_type: ''
    element_label_class: ''
    element_label_colon: false
    element_wrapper_type: ''
    element_wrapper_class: ''
    element_default_classes: true
    empty: ''
    hide_empty: false
    empty_zero: false
    hide_alter_empty: true
    text: DOC
    export_type: word_docx
    open_new_window: false

  • 🇊🇺Australia jannakha Brisbane!

    thanks for info, moving to active

Production build 0.71.5 2024