Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marks all but canonical paths as admin #43

Open
wants to merge 1 commit into
base: 8.x-1.x
Choose a base branch
from
Open

Marks all but canonical paths as admin #43

wants to merge 1 commit into from

Conversation

heddn
Copy link
Contributor

@heddn heddn commented Feb 12, 2016

This is probably a better approach for #41. One question that came up in IRC is why is DefaultHtmlRouteProvider marked as @internal.

@dawehner
Copy link
Collaborator

Thank you for the PR! Isn't though that exactly what \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider does for you?

@heddn
Copy link
Contributor Author

heddn commented Feb 15, 2016

Thanks for the feedback on AdminHtmlRouteProvider. I've switched to use it instead and marked an additional route (add-form) as admin.

@Jaesin
Copy link
Owner

Jaesin commented Feb 19, 2016

Since /admin paths are automatically set to TRUE, why not just let the route templates determine _admin_route status?

@heddn
Copy link
Contributor Author

heddn commented Feb 19, 2016

True, but if you change the paths from the defaults and don't include admin
then everything is funky. This explicitly sets what should be admin,
regardless what those paths are changed to
On Feb 18, 2016 7:15 PM, "Jaesin Mulenex" notifications@github.com wrote:

Since /admin paths are automatically set to TRUE, why not just let the
route templates determine _admin_route status?


Reply to this email directly or view it on GitHub
#43 (comment)
.

@Jaesin
Copy link
Owner

Jaesin commented Feb 19, 2016

Funky, because it shows up in the front end theme?

@heddn
Copy link
Contributor Author

heddn commented Feb 19, 2016

Exactly. Those specific paths aren't themed in any good way on non admin
paths. We found another path today that I need to add to the PR. The add
page is also an admin path.
On Feb 18, 2016 7:23 PM, "Jaesin Mulenex" notifications@github.com wrote:

Funky, because it shows up in the front end theme?


Reply to this email directly or view it on GitHub
#43 (comment)
.

@dawehner
Copy link
Collaborator

I'm wondering whether we want to have a flag for that on the annotation. The behaviour for that could depend on a usecase base

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants