Vocabulary::load calls should be avoided in classes, use dependency injection instead

Created on 14 July 2023, 12 months ago
Updated 17 July 2023, 12 months ago

Problem/Motivation

There is a service call on line 159 of FilterTooltips.php. This throws the error (as given in the title) on codesniffer.

Steps to reproduce

Run the phpcs command on the module.

Proposed resolution

Use entityTypeManager to access and load the vocabulary.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India sidharth_soman Bangalore

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

Comments & Activities

Production build 0.69.0 2024