core/modules/quickedit/src/Access/QuickEditEntityFieldAccessCheck.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/quickedit/src/Access/QuickEditEntityFieldAccessCheck.php b/core/modules/quickedit/src/Access/QuickEditEntityFieldAccessCheck.php index 13c9d48..f3dc2b8 100644 --- a/core/modules/quickedit/src/Access/QuickEditEntityFieldAccessCheck.php +++ b/core/modules/quickedit/src/Access/QuickEditEntityFieldAccessCheck.php @@ -22,12 +22,12 @@ class QuickEditEntityFieldAccessCheck implements AccessInterface, QuickEditEntit * @param string $langcode * The langcode. * @param \Drupal\Core\Session\AccountInterface $account - * (optional) The user for which to check access. + * The currently logged in account. * * @return \Drupal\Core\Access\AccessResultInterface * The access result. */ - public function access(EntityInterface $entity, $field_name, $langcode, AccountInterface $account = NULL) { + public function access(EntityInterface $entity, $field_name, $langcode, AccountInterface $account) { if (!$this->validateRequestAttributes($entity, $field_name, $langcode)) { return AccessResult::forbidden(); }