This module allows you to control how entities are represented in JSON output by selecting specific view modes. You can enable or disable fields for normalization, and it supports normalizing paragraphs, taxonomy terms, and file entities, including their URLs. The module also serializes field values based on their cardinality.
This module supports to normalize the entity by view mode.
Features
- Able to select a view mode to normalize the entity.
- Able to disable or enable the field on json output by drag&drop in the view mode config.
- Able to select the view mode for normalize in View Rest Export.
- Normalize Paragraph by view mode.
- Normalize Taxonomy Term by view mode.
- Serialize field value to single object or array depend on field's cardinality setting.
- Normalize file entity and add file URL to it.
Installation
composer require drupal/entity_view_mode_normalize
drush en entity_view_mode_normalize
Dependencies
Configuration
To be update...
Mutual support
- Entity View Mode Normalize
- Entity View Mode Field Plugin