Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
02f6ab22
Commit
02f6ab22
authored
May 18, 2015
by
xjm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2490074
by chx, dawehner: hook_entity_access documentation is useless
parent
1fbb1341
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
core/modules/system/entity.api.php
core/modules/system/entity.api.php
+9
-2
No files found.
core/modules/system/entity.api.php
View file @
02f6ab22
...
...
@@ -522,7 +522,14 @@
* The code of the language $entity is accessed in.
*
* @return \Drupal\Core\Access\AccessResultInterface
* The access result.
* The access result. The final result is calculated by using
* \Drupal\Core\Access\AccessResultInterface::orIf() on the result of every
* hook_entity_access() and hook_ENTITY_TYPE_access() implementation, and the
* result of the entity-specific checkAccess() method in the entity access
* control handler. Be careful when writing generalized access checks shared
* between routing and entity checks: routing uses the andIf() operator. So
* returning an isNeutral() does not determine entity access at all but it
* always ends up denying access while routing.
*
* @see \Drupal\Core\Entity\EntityAccessControlHandler
* @see hook_entity_create_access()
...
...
@@ -548,7 +555,7 @@ function hook_entity_access(\Drupal\Core\Entity\EntityInterface $entity, $operat
* The code of the language $entity is accessed in.
*
* @return \Drupal\Core\Access\AccessResultInterface
* The access result.
* The access result.
hook_entity_access() has detailed documentation.
*
* @see \Drupal\Core\Entity\EntityAccessControlHandler
* @see hook_ENTITY_TYPE_create_access()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment