Followup from #2328411: Convert all permissions to yml files and permission callbacks for the actual removal of hook_permission().
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | remove-hook_permission-2338475-7.patch | 9.28 KB | herom |
| #7 | interdiff-2338475-5-7.txt | 601 bytes | herom |
Comments
Comment #1
geerlingguy commentedAre we going to remove entirely, or just mark as deprecated for the time being? This change will likely break 90+% of the modules currently ported to Drupal 8, so it might be best to give them time to move to YAML before a later beta or maybe even a minor version.
Comment #2
herom commentedMy personal opinion is to remove it entirely. A lot of modules are going to break already, from the FormState changes, the Controller -> Handler renames, or a lot of other changes since alpha14. I'd rather we break the modules for people chasing alphas than those chasing betas.
Comment #3
gábor hojtsyYeah if permissions callbacks is the new way than keeping the hook is probably pointless.
Comment #4
dawehnerTotally but yeah we use the typical workflow of converting everything, marking the origin as deprecated and then remove the origin.
Comment #5
herom commentedThe parent issue got in.
Here's a patch based on dawehner's changes in 2328411#49 that completely removed hook_permission() and all of its mentions.
Comment #6
dawehner>80 chars :(
In general this looks nice!
Comment #7
herom commentedfixed #6.
Comment #8
dawehnerWell, yeah these are really details here.
Comment #9
alexpottThe CR https://www.drupal.org/node/2311427 needs updating.
Committed e1081c6 and pushed to 8.0.x. Thanks!