Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Entity/EntityCreateAccessCheck.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
60 foreach ($route_match->getRawParameters()->all() as $name => $value) { | 60 foreach ($route_match->getRawParameters()->all() as $name => $value) { |
61 $bundle = str_replace('{' . $name . '}', $value, $bundle); | 61 $bundle = str_replace('{' . $name . '}', $value, $bundle); |
62 } | 62 } |
63 // If we were unable to replace all placeholders, deny access. | 63 // If we were unable to replace all placeholders, deny access. |
64 if (strpos($bundle, '{') !== FALSE) { | 64 if (strpos($bundle, '{') !== FALSE) { |
65 return AccessResult::neutral(); | 65 return AccessResult::neutral(sprintf("Could not find '%s' request argument, therefore cannot check create access.", $bundle)); |
66 } | 66 } |
67 } | 67 } |
68 return $this->entityManager->getAccessControlHandler($entity_type)->createAccess($bundle, $account, [], TRUE); | 68 return $this->entityManager->getAccessControlHandler($entity_type)->createAccess($bundle, $account, [], TRUE); |
69 } | 69 } |
70 | 70 |