getTag function should allow to return strings

Created on 14 September 2023, 10 months ago
Updated 27 March 2024, 3 months ago

Problem/Motivation

The getTag function (\Drupal\metatag\Entity\MetatagDefaults::getTag) only allows to return Null or array, but if only one tags is allowed, then it's a string, and the value should be returnable.

Steps to reproduce

Run getTag on a tag that has a unique value allowed.

Proposed resolution

Allow to return string.

Remaining tasks

User interface changes

API changes

getTag can be used on tags with just one value.

Data model changes

๐Ÿ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ญSwitzerland mathilde_dumond

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024