summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2016-08-23 18:33:26 +0100
committerAlex Pott2016-08-23 18:33:36 +0100
commitf01ff779da5592b1bdd3ecb459ca4cc04870d662 (patch)
treec5d2d8f93ad6a9da0d17d94c5150c6715e24b0d3
parentd04a8dea2448682466edd165d264cee39aa53502 (diff)
Issue #2747177 by markdorison, chx, Sonal.Sangale, andypost, joachim, Berdir, eojthebrave: Add docs on possible values of $operation in hook_entity_field_access()
(cherry picked from commit 71ca3778a68dcc70ce5d612bb611f4e7c16f6fa7)
-rw-r--r--core/lib/Drupal/Core/Entity/entity.api.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/lib/Drupal/Core/Entity/entity.api.php b/core/lib/Drupal/Core/Entity/entity.api.php
index fe2e008..3687384 100644
--- a/core/lib/Drupal/Core/Entity/entity.api.php
+++ b/core/lib/Drupal/Core/Entity/entity.api.php
@@ -1845,7 +1845,8 @@ function hook_entity_operation_alter(array &$operations, \Drupal\Core\Entity\Ent
*
* @param string $operation
* The operation to be performed. See
- * \Drupal\Core\Access\AccessibleInterface::access() for possible values.
+ * \Drupal\Core\Entity\EntityAccessControlHandlerInterface::fieldAccess()
+ * for possible values.
* @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
* The field definition.
* @param \Drupal\Core\Session\AccountInterface $account
@@ -1856,6 +1857,8 @@ function hook_entity_operation_alter(array &$operations, \Drupal\Core\Entity\Ent
*
* @return \Drupal\Core\Access\AccessResultInterface
* The access result.
+ *
+ * @see \Drupal\Core\Entity\EntityAccessControlHandlerInterface::fieldAccess()
*/
function hook_entity_field_access($operation, \Drupal\Core\Field\FieldDefinitionInterface $field_definition, \Drupal\Core\Session\AccountInterface $account, \Drupal\Core\Field\FieldItemListInterface $items = NULL) {
if ($field_definition->getName() == 'field_of_interest' && $operation == 'edit') {