Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
node system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2014 at 12:37 UTC
Updated:
4 Sep 2014 at 11:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
blueminds commentedSo for the moment only the extracted part from the above mentioned issue. Please provide info if it is appropriate to also pass in the bundle info for the access hooks.
Also I think it will need a change record? and definitely documentation update.
Comment #3
berdirThe patch now also includes the default/check access method rename and the alter hook, which currently doesn't exist. Let's limit this to nothing but the hook arguments change, also remember to update the hook documentation.
Comment #5
blueminds commentedUpdating the patch to only add the entity_bundle parameter to the hooks.
Comment #6
blueminds commentedUpdated the hook arguments - passing in the context instead the langcode only.
Comment #8
dawehnerThe createAccess method on the access control handler has the following signature:
public function createAccess($entity_bundle = NULL, AccountInterface $account = NULL, array $context = array()) {I think a little bit more symmetry would be really ncie!Comment #9
berdirYeah, but this is the same as checkCreateAccess() :)
Let's unify all to the same, then.. and probably easier to change the hook + check method than the public API.
Comment #10
dawehnerOH, I haven't realized that.
Comment #11
alexpottNeed to update https://www.drupal.org/node/2095227
Committed bf28ded and pushed to 8.0.x. Thanks!
Comment #13
berdirAdded the new argument to the change record, thanks!