Allow other view modes to be configured

Created on 20 February 2023, almost 2 years ago
Updated 21 February 2023, almost 2 years ago

Problem/Motivation

The full view mode is hard coded. Potentially a site might want to configure a special view mode to generate test to send to VG Wort.

Proposed resolution

Extend the schema of vgwort.settings to support storing a view mode for configured entity types.
Add a UI to the setting page to allow this to be configured.

Remaining tasks

None

User interface changes

New fields on the setting form

API changes

\Drupal\vgwort\MessageGenerator::entityToNewMessage() no longer accepts view mode as an argument but it determines it from configuration.

Data model changes

New schema for vgwort.settings configuration.

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

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

Comments & Activities

Production build 0.71.5 2024