Problem/Motivation

1.

In:

most previously deprecated code was removed from main.

In the classes:

some of the deprecation code – namely the DeprecatedServicePropertyTrait and its $deprecatedProperties – was however left as a remnant.

2.

Previously, in

some code was deprecated and partly removed from main.

Again, in the classes:

some of the deprecation code – namely the DeprecatedServicePropertyTrait and its $deprecatedProperties – still needs to be removed before releasing Drupal 12.0.

Example

use Drupal\Core\DependencyInjection\DeprecatedServicePropertyTrait;

[...]
class Permission extends AccessPluginBase implements CacheableDependencyInterface {
  use DeprecatedServicePropertyTrait;

  /**
   * The service properties that should raise a deprecation error.
   */
  private array $deprecatedProperties = ['moduleHandler' => 'module_handler'];

Proposed resolution

Remove the remnants.

Remaining tasks

None.

User interface changes

None.

Introduced terminology

None.

API changes

None.

Data model changes

None.

Release notes snippet

n/a

Issue fork drupal-3635157

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pancho created an issue. See original summary.

pancho’s picture

pancho’s picture

Issue summary: View changes
smustgrave’s picture

Believe some of those were kept around as examples

pancho’s picture

We will have new examples... 💁🏻

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new1.17 KB

The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.