Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Child of #2124749: [meta] Stop using $request->attributes->get(MAGIC_KEY) as a public API. Any ideas what to replace it with?
Comments
Comment #1
dawehnerInstead #2214209: Move _menu_site_is_offine() into the Maintainance subscriber is in, we could maybe move this logic into a separate service you can ask whether you are in maintenance mode
and you could just set it to be in maintenance mode.
It could cache the information internally and clear it at the beginning of requests.
Comment #2
dawehnerPostponed on #2214209: Move _menu_site_is_offine() into the Maintainance subscriber
Comment #3
dawehner.
Comment #4
ParisLiakos CreditAttribution: ParisLiakos commented#1 sounds great to me
Comment #5
znerol CreditAttribution: znerol commentedOops, missed that one, filed #2288665: Remove _maintenance request attribute and replace it with a maintenance mode service.
Comment #6
effulgentsia CreditAttribution: effulgentsia commentedNice! Since that issue has a working patch, closing this one as a duplicate.