Can't alter Route of created Page

Created on 8 July 2016, almost 9 years ago
Updated 15 September 2023, over 1 year ago

Can't alter Route of created Page.
Also it is absent in list of existing routes on altering process:

services:
  example.route_subscriber:
    class: Drupal\example\Routing\RouteSubscriber
    tags:
      - { name: event_subscriber }

I found Event PaggeManagerContextEvent.

But what is format for $condition:
Page::addAccessCondition($condition) ?
For example: How can I check if current_user is same as Page argument user?

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine parashutiki

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

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