Problem/Motivation

Currently the field type icon for the view mode switch field type is added by a custom hook_library_info_alter() implementation. But core (>= 10.2) allows to add it via hook_field_type_category_info_alter() as well.

Steps to reproduce

n/a

Proposed resolution

  • Use general instead of Layout as category for view mode switch field type
  • Rework the custom implementation and use hook_field_type_category_info_alter() instead

Remaining tasks

  • Create issue fork and MR to fix this issue

User interface changes

n/a

API changes

n/a

Data model changes

n/a

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

hctom created an issue. See original summary.

hctom’s picture

Issue summary: View changes

hctom’s picture

Issue summary: View changes
hctom’s picture

Issue summary: View changes
hctom’s picture

Issue summary: View changes
hctom’s picture

Title: Rework implementation of field type icon for view mode switch field type » Rework implementation of field type icon
hctom’s picture

hctom’s picture

Status: Active » Fixed

Done ;)

hctom’s picture

Status: Fixed » Closed (fixed)