Problem/Motivation

In recent projects, we found ourself in the need to manipulate the items of certains field before render:

  • Remove certain items under certain conditions
  • Remove/hide certain subfield values in specific cases

I ended up adding an event in BaseFormatter::getFormattedValues() before the subfield type formatting is performed, which seems useful to have available by default.

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

andreasderijcke created an issue. See original summary.

andreasderijcke’s picture

Assigned: andreasderijcke » Unassigned
Status: Active » Needs review
andreasderijcke’s picture

Version: 4.0.x-dev » 3.1.x-dev

apmsooner made their first commit to this issue’s fork.

apmsooner’s picture

Status: Needs review » Fixed

apmsooner’s picture

Status: Fixed » Closed (fixed)