Implode does not work for arrays

Created on 28 April 2023, about 1 year ago
Updated 17 May 2023, about 1 year ago

Problem/Motivation

The "Tamper: implode" action is supposed to implode arrays. However this doesn't work.

Probably because the value is being retrieved the following way:
https://git.drupalcode.org/project/eca_tamper/-/blob/1.0.x/src/Plugin/Ac...

$data = $this->tokenServices->replaceClear($this->configuration['eca_data']);

Meaning $data is always either a string or MarkupInterface, but not an array.

Steps to reproduce

Proposed resolution

We probably need to switch to a different mechanic for fetching the data value. Maybe using getOrReplace method. However then it may return typed data and specifically a DataTransferObject, which then needs to be called with its toArray method when available.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany mxh Offenburg

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

Comments & Activities

Production build 0.69.0 2024