Problem/Motivation

System module's REGIONS_VISIBLE and REGIONS_ALL constants were deprecated as part of #2807785: Move global constants from *.module files into interfaces but the deprecation didn't account for the fact that these constants are used in system.module and the block module is not required.

Proposed resolution

Undeprecate the constants and let #3015812: Introduce new Theme extension object and properly deprecate REGIONS_VISIBLE and REGIONS_ALL resolve the fact we now have both REGIONS_VISIBLE and \Drupal\block\BlockRepositoryInterface::REGIONS_VISIBLE

Remaining tasks

On commit update https://www.drupal.org/node/2831620

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#4 3112263-4.patch808 bytesalexpott
#2 3112263-2.patch1.45 KBalexpott

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Issue summary: View changes
Status: Active » Needs review
Issue tags: +Needs change record updates
StatusFileSize
new1.45 KB

Status: Needs review » Needs work

The last submitted patch, 2: 3112263-2.patch, failed testing. View results

alexpott’s picture

Status: Needs work » Needs review
StatusFileSize
new808 bytes

So let's not change the \Drupal\block\BlockRepositoryInterface here - doesn't really matter and #3015812: Introduce new Theme extension object and properly deprecate REGIONS_VISIBLE and REGIONS_ALL can deal with cleaning this mess up. Note that \Drupal\block\BlockRepositoryInterface::REGIONS_VISIBLE and \Drupal\block\BlockRepositoryInterface::REGIONS_ALL are completely unused in runtime code. The reason tests fail is because they're unit and don't include system.module.

gábor hojtsy’s picture

Status: Needs review » Reviewed & tested by the community

Looks fine. Change record can only be updated on/after commit.

  • catch committed f0d7d73 on 9.0.x
    Issue #3112263 by alexpott, Gábor Hojtsy: Undeprecate REGIONS_*...

  • catch committed a068f00 on 8.8.x
    Issue #3112263 by alexpott, Gábor Hojtsy: Undeprecate REGIONS_*...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed f0d7d73 and pushed to 9.0.x. Cherry-picked to 8.9.x and 8.8.x. Thanks!

  • catch committed ec37742 on 8.9.x
    Issue #3112263 by alexpott, Gábor Hojtsy: Undeprecate REGIONS_*...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.