with-filter description can be ambiguous

Created on 6 November 2023, 8 months ago
Updated 10 November 2023, 8 months ago

Problem/Motivation

The cheat sheat says

This is an opposite of core without filter.

This is incorrect and misleading, the with function (not using the phrase "filter" class here to avoid confusion) does something with a render array key, but it does not filter (remove, reduce,...) something.

Proposed resolution

Change documentation to

This filter allows to set a value in a render array.

API changes

Maybe change the function name in the next major version? It behaves like a setter, but the TwigFilter name set is already used by Components! module → . Something like set_by_key?

📌 Task
Status

Fixed

Version

3.2

Component

Documentation

Created by

🇦🇹Austria hudri Austria

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

Comments & Activities

Production build 0.69.0 2024