core.entity_view_display.support_ticket.ticket.default.yml is not working in Drupall 9

Created on 26 May 2023, over 1 year ago
Updated 2 September 2023, over 1 year ago

Problem/Motivation

core.entity_view_display.support_ticket.ticket.default.yml is not working in Drupal 9 when installing the support_ticket module it produces the following error.

In DiscoveryTrait.php line 53:
                                                                                                                                                                                                                                       
  The "hidden" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\FormatterPluginManager are: comment_username, comment_default, comment_permalink, list_default, list_key, text_default, text_summary_or_trimmed, text_tr  
  immed, author, user_name, basic_string, boolean, number_decimal, entity_reference_entity_view, entity_reference_entity_id, entity_reference_label, number_integer, language, email_mailto, number_unformatted, string, timestamp_ag  
  o, timestamp, uri_link  
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇦🇺Australia purencool

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @purencool
  • 🇦🇺Australia purencool

    It appears that the Entity API in Drupal 8 changed the DisplayOptions method input array no longer uses the "type" parameter when an item is hidden, but instead uses the "region" parameter.

    @@ -308,7 +308,7 @@ class SupportTicket extends ContentEntityBase implements SupportTicketInterface
           ->setTranslatable(TRUE)
           ->setRevisionable(TRUE)
           ->setDisplayOptions('view', [
    -        'type' => 'hidden',
    +        'region' => 'hidden',
           ])
    
  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024