Problem/Motivation

Need to remove depricated methods from block module, Further description https://www.drupal.org/project/drupal/issues/2716163

Proposed resolution

Create a patch that can replace entityManager to entityTypeManager and other depricated methods

User interface changes

BLock help text

API changes

None

Comments

uditrawat created an issue. See original summary.

uditrawat’s picture

uditrawat’s picture

Issue tags: -depricated +deprecated
StatusFileSize
new2.65 KB
cilefen’s picture

Title: Deprecated function removal » Remove calls to deprecated code in the block module
Issue tags: -block
badrange’s picture

What is the best target for this patch, 8.8.x or 8.7.x? I have a feeling it will be ignored when it is marked for 8.7.5.

cilefen’s picture

badrange’s picture

StatusFileSize
new1.03 KB

When rerolling this patch for 8.8.x I notice that most of the changes in the patch have already been committed. Attaching a patch with the only change that is left.

core/modules/system/system.module indeed state:

/**
 * Return only visible regions.
 *
 * @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0.
 *   Use \Drupal\block\BlockRepositoryInterface::REGIONS_VISIBLE instead.
 *
 * @see system_region_list()
 * @see https://www.drupal.org/node/2831620
 */
const REGIONS_VISIBLE = 'visible';
badrange’s picture

Status: Active » Needs review
badrange’s picture

berdir’s picture

Status: Needs review » Closed (duplicate)

We don't update deprecated calls per module (anymore), I'd say this is a duplicate of #3015812: Introduce new Theme extension object and properly deprecate REGIONS_VISIBLE and REGIONS_ALL at this point as that's the only thing that's left. That's a more specific issue than #9.