Use dependency injection

Created on 22 January 2020, over 5 years ago
Updated 3 June 2025, 4 days ago

use dependency injection to avoid upgrade problems to newer version.

Example:
File : /src/Plugin/views/display/DataExport.php

use Drupal\Core\Utility\Token;

\Drupal::token()->replace($filename, ['view' => $view] instead use $this->token->replace[$filename, ['view' => $view]]

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India vernit India

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024