This project provides an SVG icon field which can be part of any content entity. It comes with field plugin, widget and formatter and also an icon service. Icons are on CC0 licence which means it can be used without attribution or permission on commercial and private projects. It also allows to provide own set of icons by a hook_svg_icon_field_categories_alter.
In the future there should be extra options added to define categories and icons by fetching data from an external API and by defining a taxonomy (as category) and icons as custom entity, but that's not part of the current branch.
Here is the screenshot of a widget during adding/editing an entity with the SVG icon field added:

Project link
| Comment | File | Size | Author |
|---|---|---|---|
| screenshot_78.png | 41.57 KB | dawid_nawrot |
Comments
Comment #2
vishal.kadamThank you for applying!
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
phpcs --standard=Drupal,DrupalPracticeon the project, which alone fixes most of what reviewers would report.To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #3
vishal.kadamComment #4
scott_euser commentedI did an initial review of the module:
Comment #5
vishal.kadam1.
8.x-1.x-issue-3236682,8.x-1.x-issue-3236672,8.x-1.0-alpha1and8.x-1.0-alpha2are wrong names for a branch. Release branch names always end with the literal .x as described in Release branches.2. FILE: svg_icon_field.libraries.yml
version: VERSIONVERSION is only used by Drupal core modules. Contributed modules should use a literal string that does not change with the Drupal core version a site is using.
3. FILE: svg_icon_field.module
The usual description for a .module file is Hook implementations for the [module name] module. where [module name] is the module name given in the .info.yml file.
4. FILE: README.txt
Replace README.txt with README.md and it should follow the content and formatting described in README.md template.
5. FILE: src/Plugin/Field/FieldWidget/IconWidgetType.php
The documentation comment for constructors is not mandatory anymore, If it is given, the description must be Constructs a new [class name] object. where [class name] includes the class namespace.
Comment #6
dawid_nawrot commentedI've updated the branch according to your requests.
As for release branches. Branches were never used to create releases for this project. I always used tags. Here is the list of releases:
https://www.drupal.org/project/svg_icon_field/releases
As for branches, I can remove it sure and leave 8.x-1.x, but is it required?
Comment #7
vishal.kadamYes, see the application checklist here. It should follow the naming standards reported in Release naming conventions for branch names
Comment #8
dawid_nawrot commentedOk, I removed all of the dangling branches, so now it's only 8.x-1.x
Comment #9
vishal.kadamRemember to change status, when the project is ready to be reviewed. In this queue, projects are only reviewed when the status is Needs review.
Comment #10
scott_euser commentedJust checked the MR that Dawid merged in and it looks like that - combined with the branch clean-up - has addressed the issues you raised. Gitlab CI continues to flag no issues.
Having had you @vishal.kadam and me review from utilisation of Drupal core functionality/no unsafe usage of SVG, should we switch to RTBC?
Comment #11
vishal.kadamRest looks fine to me.
Let’s wait for a Code Review Administrator to take a look and if everything goes fine, you will get the role.
Comment #12
dawid_nawrot commentedAwesome, thanks :)
Comment #13
avpadernoThank you for your contribution and for your patience with the review process!
I am going to update your account so you can opt into security advisory coverage any project you create, including the projects you already created.
These are some recommended readings to help you with maintainership:
You can find more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank the dedicated reviewers as well.
Comment #14
avpadernoComment #15
dawid_nawrot commentedThank you :)
Comment #17
avpaderno