Replace all calls of Views::pluginManager() and handlerManager() with \Drupal::service('plugin.manager.views.' . $type)

Created on 21 December 2023, 6 months ago
Updated 22 December 2023, 6 months ago

Problem/Motivation

Replace all calls of Views::pluginManager($type) and Views::handlerManager($type) with \Drupal::service('plugin.manager.views.' . $type)

Steps to reproduce

Proposed resolution

Remaining tasks

  • Find all usages
  • Replace them with the service

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component
Views  →

Last updated about 2 hours ago

Created by

🇬🇷Greece dimitriskr

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

Comments & Activities

  • Issue created by @dimitriskr
  • 🇮🇳India SandeepSingh199

    Do we really need to replace Views::pluginManager($type) and Views::handlerManager($type) with \Drupal::service('plugin.manager.views.' . $type), as pluginManager is a centralised function and inside it we are using plugin.manager.views. service.
    So in future dates whenever we want to change the service, we have to only change

    public static function pluginManager($type) {
        return \Drupal::service('plugin.manager.views.' . $type);
      }
    

    , we have to only change the name of the service.

Production build 0.69.0 2024