Better explain $view_mode parameter for drupal_field()

Created on 11 May 2023, over 1 year ago
Updated 19 August 2023, over 1 year ago

Problem/Motivation

$view_mode parameter for drupal_field() can either be a viewmode or an array of display options. It might not be clear, which values are required / expected here, so I think the relevant documentation should be linked to better understand that.

https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...

Steps to reproduce

Proposed resolution

Add comment and links to the cheat sheet

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

3.0

Component

Documentation

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

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

Comments & Activities

Production build 0.71.5 2024