Add support for #icon_id

Created on 10 January 2024, 6 months ago

Problem/Motivation

In the module's README as well as the sub-module READMEs there is the following description:

To use an icon through a custom render array is pretty easy as well.
Just build a render array like this:

```php
$icon = [
  '#type' => 'icon',
  '#icon_set' => 'icon_set_configuration_entity_id',
  '#icon_name' => 'icon_name',
];
```

Or you could use a combination of the configuration entity id with the icon
name like this:

```php
$icon = [
  '#type' => 'icon',
  '#icon_id' => 'icon_set_configuration_entity_id:icon_name',
];
```

Yet the second example does not work, nor is the text '#icon_id' present anywhere in the module's code.

Steps to reproduce

Attempt to add a render array of an icon using the '#icon_id' syntax.

Proposed resolution

Add support for utilizing '#icon_id' as described.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada mdolnik

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

Comments & Activities

Production build 0.69.0 2024