public function EntityAccessControllerInterface::updateAccess

Checks 'update' access for a given entity or entity translation.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to check 'update' access.

string $langcode: (optional) The language code for which to check access. Defaults to LANGUAGE_DEFAULT.

\Drupal\user\Plugin\Core\Entity\User $account: (optional) The user for which to check access, or NULL to check access for the current user. Defaults to NULL.

Return value

bool TRUE if access was granted, FALSE otherwise.

2 methods override EntityAccessControllerInterface::updateAccess()
EntityAccessController::updateAccess in drupal/core/lib/Drupal/Core/Entity/EntityAccessController.php
Implements EntityAccessControllerInterface::updateAccess().
EntityTestAccessController::updateAccess in drupal/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/EntityTestAccessController.php
Implements EntityAccessControllerInterface::update().

File

drupal/core/lib/Drupal/Core/Entity/EntityAccessControllerInterface.php, line 67
Contains Drupal\Core\Entity\EntityAccessControllerInterface.

Class

EntityAccessControllerInterface
Defines a common interface for entity access controller classes.

Namespace

Drupal\Core\Entity

Code

public function updateAccess(EntityInterface $entity, $langcode = LANGUAGE_DEFAULT, User $account = NULL);